feat(lazydev): use lazydev with neodev types (not the plugin) on Neovim 0.9.x
This commit is contained in:
@ -8,12 +8,22 @@ return {
|
|||||||
{ "folke/ts-comments.nvim", enabled = false },
|
{ "folke/ts-comments.nvim", enabled = false },
|
||||||
{ import = "lazyvim.plugins.extras.coding.mini-comment" },
|
{ import = "lazyvim.plugins.extras.coding.mini-comment" },
|
||||||
|
|
||||||
-- Use neodev instead of lazydev
|
-- Use neodev-types with lazydev
|
||||||
{ "folke/lazydev.nvim", enabled = false },
|
{ "folke/neodev.nvim", config = function() end },
|
||||||
|
{
|
||||||
|
"folke/lazydev.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
opts.library = opts.library or {}
|
||||||
|
table.insert(opts.library, { "neodev.nvim/types/stable" })
|
||||||
|
end,
|
||||||
|
config = function(_, opts)
|
||||||
|
-- force lazydev to load on Neovim 0.9
|
||||||
|
require("lazydev.config").have_0_10 = true
|
||||||
|
require("lazydev").setup(opts)
|
||||||
|
end,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
dependencies = {
|
dependencies = {},
|
||||||
{ "folke/neodev.nvim", opts = {} },
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user