chore(nvim): improved cmp performance and added fugitive
This commit is contained in:
parent
3190c83a91
commit
1d5291c270
3 changed files with 28 additions and 2 deletions
|
@ -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 }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue