feat(coding): use lazydev.nvim instead of neodev.nvim

This commit is contained in:
Folke Lemaitre 2024-06-02 09:33:52 +02:00
parent 596c439db5
commit 5e76948d58
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 42 additions and 5 deletions

View file

@ -200,4 +200,26 @@ return {
}
end,
},
{
"folke/lazydev.nvim",
ft = "lua",
opts = function()
return {
library = {
uv = LazyVim.get_plugin_path("luvit-meta", "library"),
lazyvim = LazyVim.get_plugin_path("LazyVim"),
},
}
end,
},
-- Manage libuv types with lazy. Plugin will never be loaded
{ "Bilal2453/luvit-meta", lazy = true },
-- Add lazydev source to cmp
{
"hrsh7th/nvim-cmp",
opts = function(_, opts)
table.insert(opts.sources, { name = "lazydev", group_index = 0 })
end,
},
}