chore(nvim): improved cmp performance and added fugitive

This commit is contained in:
Afonso Franco 2024-09-04 15:30:52 +01:00
parent 3190c83a91
commit 1d5291c270
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4
3 changed files with 28 additions and 2 deletions

View file

@ -1,6 +1,7 @@
return {
{
"hrsh7th/nvim-cmp",
"yioneko/nvim-cmp",
branch = "perf",
event = "VeryLazy",
dependencies = {
"hrsh7th/cmp-nvim-lsp", -- lsp
@ -28,6 +29,10 @@ return {
luasnip.lsp_expand(args.body)
end,
},
performance = {
debounce = 0,
throttle = 0,
},
mapping = {
["<C-n>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
["<C-p>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),