2023-10-10 21:51:09 +02:00
|
|
|
if vim.fn.has("nvim-0.9.0") == 0 then
|
|
|
|
vim.api.nvim_echo({
|
|
|
|
{ "LazyVim requires Neovim >= 0.9.0\n", "ErrorMsg" },
|
|
|
|
{ "Press any key to exit", "MoreMsg" },
|
|
|
|
}, true, {})
|
|
|
|
vim.fn.getchar()
|
|
|
|
vim.cmd([[quit]])
|
|
|
|
return {}
|
|
|
|
end
|
|
|
|
|
2023-01-25 08:59:45 +01:00
|
|
|
require("lazyvim.config").init()
|
2023-01-10 10:07:19 +01:00
|
|
|
|
2023-01-22 14:33:55 +01:00
|
|
|
return {
|
2023-01-22 15:15:08 +01:00
|
|
|
{ "folke/lazy.nvim", version = "*" },
|
2024-06-11 00:06:56 +02:00
|
|
|
{ "LazyVim/LazyVim", priority = 10000, lazy = false, opts = {}, cond = true, version = "*" },
|
2024-11-07 15:54:47 +01:00
|
|
|
{
|
|
|
|
"folke/snacks.nvim",
|
|
|
|
priority = 1000,
|
|
|
|
lazy = false,
|
2024-12-12 09:37:47 +01:00
|
|
|
opts = {},
|
2024-11-19 09:03:00 +01:00
|
|
|
config = function(_, opts)
|
|
|
|
local notify = vim.notify
|
|
|
|
require("snacks").setup(opts)
|
|
|
|
-- HACK: restore vim.notify after snacks setup and let noice.nvim take over
|
|
|
|
-- this is needed to have early notifications show up in noice history
|
|
|
|
if LazyVim.has("noice.nvim") then
|
|
|
|
vim.notify = notify
|
|
|
|
end
|
|
|
|
end,
|
2024-11-07 15:54:47 +01:00
|
|
|
},
|
2023-01-22 14:33:55 +01:00
|
|
|
}
|