home: vim: use async path completion
All checks were successful
ci/woodpecker/push/check Pipeline was successful
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:
parent
7529d2b7f9
commit
7ace62da72
|
@ -77,6 +77,7 @@ in
|
||||||
luasnip # Snippet manager compatible with LSP
|
luasnip # Snippet manager compatible with LSP
|
||||||
friendly-snippets # LSP snippets collection
|
friendly-snippets # LSP snippets collection
|
||||||
nvim-cmp # Completion engine
|
nvim-cmp # Completion engine
|
||||||
|
cmp-async-path # More responsive path completion
|
||||||
cmp-buffer # Words from open buffers
|
cmp-buffer # Words from open buffers
|
||||||
cmp-nvim-lsp # LSP suggestions
|
cmp-nvim-lsp # LSP suggestions
|
||||||
cmp-nvim-lua # NeoVim lua API
|
cmp-nvim-lua # NeoVim lua API
|
||||||
|
|
|
@ -37,7 +37,7 @@ cmp.setup({
|
||||||
entries = "native",
|
entries = "native",
|
||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
{ name = "path", priority_weight = 110 },
|
{ name = "async_path", priority_weight = 110 },
|
||||||
{ name = "nvim_lsp", priority_weight = 100 },
|
{ name = "nvim_lsp", priority_weight = 100 },
|
||||||
{ name = "nvim_lua", priority_weight = 90 },
|
{ name = "nvim_lua", priority_weight = 90 },
|
||||||
{ name = "luasnip", priority_weight = 80 },
|
{ name = "luasnip", priority_weight = 80 },
|
||||||
|
|
Loading…
Reference in a new issue