mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 09:48:59 +02:00
feat(coding): use lazydev.nvim
instead of neodev.nvim
This commit is contained in:
parent
596c439db5
commit
5e76948d58
4 changed files with 42 additions and 5 deletions
6
NEWS.md
6
NEWS.md
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
## 11.x
|
## 11.x
|
||||||
|
|
||||||
|
- **Neovim >= 0.10** now uses the much faster [lazydev.nvim](https://github.com/folke/lazydev.nvim)
|
||||||
|
instead of `neodev.nvim`
|
||||||
|
|
||||||
|
- moved `neoconf.nvim` to extras. Project specific LSP settings
|
||||||
|
can be done with a `.lazy.lua` file instead.
|
||||||
|
|
||||||
- `mini.ai` is back as a default plugin! Removing it was a mistake.
|
- `mini.ai` is back as a default plugin! Removing it was a mistake.
|
||||||
It's a great plugin that enhances the native text objects.
|
It's a great plugin that enhances the native text objects.
|
||||||
|
|
||||||
|
|
|
@ -200,4 +200,26 @@ return {
|
||||||
}
|
}
|
||||||
end,
|
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,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,18 @@
|
||||||
|
-- Compatibility with Neovim 0.9
|
||||||
return {
|
return {
|
||||||
|
-- Use LuaSnip instead of native snippets
|
||||||
{ import = "lazyvim.plugins.extras.coding.luasnip" },
|
{ import = "lazyvim.plugins.extras.coding.luasnip" },
|
||||||
{
|
|
||||||
"folke/ts-comments.nvim",
|
-- Use mini.comment instead of ts-comments
|
||||||
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
|
||||||
|
{ "folke/lazydev.nvim", enabled = false },
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
dependencies = {
|
||||||
|
{ "folke/neodev.nvim", opts = {} },
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@ return {
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
event = "LazyFile",
|
event = "LazyFile",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ "folke/neodev.nvim", opts = {} },
|
|
||||||
"mason.nvim",
|
"mason.nvim",
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue