Use lazydev instead of neodev on nvim 0.10+

This commit is contained in:
ViViDboarder 2024-11-22 11:40:48 -08:00
parent 5846ee9383
commit 054bb39cfc
3 changed files with 15 additions and 0 deletions

View File

@ -67,6 +67,10 @@
"branch": "main",
"commit": "56ead98e05bb37a4ec28930a54d836d033cf00f2"
},
"lazydev.nvim": {
"branch": "main",
"commit": "d5800897d9180cea800023f2429bce0a94ed6064"
},
"limelight.vim": {
"branch": "master",
"commit": "0c8cc7f503a775c505dc9c67f1f5041ab4d5f1fd"

View File

@ -337,6 +337,15 @@ return {
"https://github.com/folke/neodev.nvim",
dependencies = { { "https://github.com/neovim/nvim-lspconfig" } },
ft = { "lua" },
-- Disable for nvim 0.10 because there is lazydev
enabled = vim.fn.has("nvim-0.10") ~= 1,
},
{
"https://github.com/folke/lazydev.nvim",
dependencies = { { "https://github.com/neovim/nvim-lspconfig" } },
ft = "lua",
opts = {},
enabled = vim.fn.has("nvim-0.10") == 1,
},
-- Rust analyzer

View File

@ -18,8 +18,10 @@ function M.config_cmp()
{ name = "luasnip" },
{ name = "buffer" },
{ name = "spell" },
-- TODO: Refactor to use the lazy opt expansion feature
{ name = "obsidian" },
{ name = "obsidian_new" },
{ name = "lazydev" },
},
mapping = cmp.mapping.preset.insert({
-- Scroll docs with readline back - forward