home: vim: use async path completion
All checks were successful
ci/woodpecker/push/check Pipeline was successful

This makes the editor more responsive when completing in directories
that are network mounted or have a large amount of entries.
This commit is contained in:
Bruno BELANYI 2023-08-07 15:37:35 +00:00
parent 7529d2b7f9
commit 7ace62da72
2 changed files with 2 additions and 1 deletions

View file

@ -77,6 +77,7 @@ in
luasnip # Snippet manager compatible with LSP
friendly-snippets # LSP snippets collection
nvim-cmp # Completion engine
cmp-async-path # More responsive path completion
cmp-buffer # Words from open buffers
cmp-nvim-lsp # LSP suggestions
cmp-nvim-lua # NeoVim lua API

View file

@ -37,7 +37,7 @@ cmp.setup({
entries = "native",
},
sources = {
{ name = "path", priority_weight = 110 },
{ name = "async_path", priority_weight = 110 },
{ name = "nvim_lsp", priority_weight = 100 },
{ name = "nvim_lua", priority_weight = 90 },
{ name = "luasnip", priority_weight = 80 },