feat: add .lazy.lua to setup lazydev.nvim

This commit is contained in:
2025-10-04 12:50:47 +08:00
parent 7b1044214f
commit 77d0a1c449

21
.lazy.lua Normal file
View File

@@ -0,0 +1,21 @@
return {
{
"folke/lazydev.nvim",
ft = "lua",
opts = {
library = {
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
},
},
},
{
"hrsh7th/nvim-cmp",
opts = function(_, opts)
opts.sources = opts.sources or {}
table.insert(opts.sources, {
name = "lazydev",
group_index = 0,
})
end,
},
}