improve blink.cmp perf in large directories
This commit is contained in:
parent
e9d4373ddc
commit
e5a176d5b7
1 changed files with 8 additions and 1 deletions
|
|
@ -132,12 +132,19 @@ vim.schedule(function()
|
|||
default = { 'lsp', 'path', 'snippets', 'ripgrep', 'buffer' },
|
||||
providers = {
|
||||
lsp = { fallbacks = {} }, -- include buffer even when LSP is active
|
||||
path = { opts = { get_cwd = vim.fn.getcwd } }, -- use nvim pwd instead of current file pwd
|
||||
path = { async = true, opts = { get_cwd = vim.fn.getcwd } }, -- use nvim pwd instead of current file pwd
|
||||
ripgrep = {
|
||||
enabled = false,
|
||||
module = 'blink-ripgrep',
|
||||
name = 'rg',
|
||||
score_offset = -10,
|
||||
async = true,
|
||||
opts = {
|
||||
project_root_marker = { '.git', '.jj' },
|
||||
backend = {
|
||||
use = 'gitgrep-or-ripgrep',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue