feat(lazy): allow for hot loading plugin specs

This commit is contained in:
2024-04-21 03:20:28 +02:00
parent 2e36ef05d9
commit ac1e40bfee
31 changed files with 683 additions and 831 deletions
+12 -16
View File
@@ -1,20 +1,16 @@
-- https://github.com/rcarriga/nvim-notify
local function setup()
local has_telescope, telescope = pcall(require, "telescope")
local notify = require("notify")
notify.setup({
---@type LazyPluginSpec
return {
"rcarriga/nvim-notify",
priority = 900,
lazy = false,
opts = {
render = "default",
stages = "static",
})
vim.notify = notify
if has_telescope then
telescope.load_extension("notify")
vim.keymap.set("n", "<leader>fn", telescope.extensions.notify.notify)
end
end
return setup
},
config = function(_, opts)
vim.notify = require("notify")
vim.notify.setup(opts)
end,
}