mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-03-24 02:40:50 -05:00
improve blink.cmp perf in large directories
Some checks failed
build / build (nvim-min) (push) Failing after 3h0m1s
Some checks failed
build / build (nvim-min) (push) Failing after 3h0m1s
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' },
|
default = { 'lsp', 'path', 'snippets', 'ripgrep', 'buffer' },
|
||||||
providers = {
|
providers = {
|
||||||
lsp = { fallbacks = {} }, -- include buffer even when LSP is active
|
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 = {
|
ripgrep = {
|
||||||
|
enabled = false,
|
||||||
module = 'blink-ripgrep',
|
module = 'blink-ripgrep',
|
||||||
name = 'rg',
|
name = 'rg',
|
||||||
score_offset = -10,
|
score_offset = -10,
|
||||||
async = true,
|
async = true,
|
||||||
|
opts = {
|
||||||
|
project_root_marker = { '.git', '.jj' },
|
||||||
|
backend = {
|
||||||
|
use = 'gitgrep-or-ripgrep',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue