init.lua/lua/plugins/lsp/lazydev.lua(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
---@type LazySpec
return {
"folke/lazydev.nvim",
ft = "lua",
cmd = "LazyDev",
dependencies = {
{
"nvim-cmp",
---@module "cmp"
---@param opts cmp.ConfigSchema
opts = function(_, opts)
table.insert(opts.sources, 1, {
name = "lazydev",
group_index = 0,
})
end,
},
},
---@module "lazydev"
---@type lazydev.Config
opts = {
library = {
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
{ path = "mini.test", words = { "MiniTest" } },
{ path = "mini.ai", words = { "MiniAI" } },
"lazy.nvim",
},
},
}
|