[nvim] improved cmp performance and added fugitive

This commit is contained in:
Afonso Franco 2024-09-04 15:30:52 +01:00
parent 863db86b96
commit a25bf4b2ae
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54
4 changed files with 50 additions and 22 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 }),