From e5a176d5b731ed6fa75773d5f71c6827f3d4e73a Mon Sep 17 00:00:00 2001 From: iofq Date: Mon, 23 Feb 2026 22:51:14 -0600 Subject: [PATCH] improve blink.cmp perf in large directories --- nvim/after/plugin/plugins.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nvim/after/plugin/plugins.lua b/nvim/after/plugin/plugins.lua index 5d9c94c..eec3c80 100644 --- a/nvim/after/plugin/plugins.lua +++ b/nvim/after/plugin/plugins.lua @@ -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', + }, + }, }, }, },