mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 18:07:34 +00:00
Use lazydev instead of neodev on nvim 0.10+
This commit is contained in:
parent
5846ee9383
commit
054bb39cfc
@ -67,6 +67,10 @@
|
|||||||
"branch": "main",
|
"branch": "main",
|
||||||
"commit": "56ead98e05bb37a4ec28930a54d836d033cf00f2"
|
"commit": "56ead98e05bb37a4ec28930a54d836d033cf00f2"
|
||||||
},
|
},
|
||||||
|
"lazydev.nvim": {
|
||||||
|
"branch": "main",
|
||||||
|
"commit": "d5800897d9180cea800023f2429bce0a94ed6064"
|
||||||
|
},
|
||||||
"limelight.vim": {
|
"limelight.vim": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"commit": "0c8cc7f503a775c505dc9c67f1f5041ab4d5f1fd"
|
"commit": "0c8cc7f503a775c505dc9c67f1f5041ab4d5f1fd"
|
||||||
|
@ -337,6 +337,15 @@ return {
|
|||||||
"https://github.com/folke/neodev.nvim",
|
"https://github.com/folke/neodev.nvim",
|
||||||
dependencies = { { "https://github.com/neovim/nvim-lspconfig" } },
|
dependencies = { { "https://github.com/neovim/nvim-lspconfig" } },
|
||||||
ft = { "lua" },
|
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
|
-- Rust analyzer
|
||||||
|
@ -18,8 +18,10 @@ function M.config_cmp()
|
|||||||
{ name = "luasnip" },
|
{ name = "luasnip" },
|
||||||
{ name = "buffer" },
|
{ name = "buffer" },
|
||||||
{ name = "spell" },
|
{ name = "spell" },
|
||||||
|
-- TODO: Refactor to use the lazy opt expansion feature
|
||||||
{ name = "obsidian" },
|
{ name = "obsidian" },
|
||||||
{ name = "obsidian_new" },
|
{ name = "obsidian_new" },
|
||||||
|
{ name = "lazydev" },
|
||||||
},
|
},
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
-- Scroll docs with readline back - forward
|
-- Scroll docs with readline back - forward
|
||||||
|
Loading…
Reference in New Issue
Block a user