chore(neovim):

- Keymap: remove <tab> to switch buffer
- Completion: Remove mini.completion plugins - conflicting
- Completion: Use luasnip buffer for completion
- Lua: Use lazydev for better nvim lua diagnostics
This commit is contained in:
Pratik Tripathy
2024-12-16 21:46:06 +05:30
parent cb7053fdce
commit 20b3597501
5 changed files with 26 additions and 8 deletions

View File

@@ -106,4 +106,26 @@ return {
},
},
},
{
"folke/lazydev.nvim",
ft = "lua", -- only load on lua files
opts = {
library = {
-- See the configuration section for more details
-- Load luvit types when the `vim.uv` word is found
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
},
},
},
{
"hrsh7th/nvim-cmp",
opts = function(_, opts)
opts.sources = opts.sources or {}
table.insert(opts.sources, {
name = "lazydev",
group_index = 0, -- set group index to 0 to skip loading LuaLS completions
})
end,
},
}