nvim: mini.pick ripgrep->rg tool name

This commit is contained in:
Daniel Lundin 2024-11-27 14:04:13 +01:00
parent dfa99a5d4c
commit 71660705f0
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI

View file

@ -69,7 +69,7 @@ MiniPick.registry.files_root = function(local_opts)
local root_dir = vim.fs.dirname(vim.fs.find(root_patterns, { upward = true })[1])
local_opts.cwd = root_dir
local_opts.tool = "rg"
return MiniPick.builtin.files(local_opts, { source = { cwd = root_dir, tool = "ripgrep" } })
return MiniPick.builtin.files(local_opts, { source = { cwd = root_dir, tool = "rg" } })
end
MiniPick.registry.grep_live_root = function(local_opts)
local root_patterns = { ".jj", ".git" }
@ -130,9 +130,6 @@ require("mini.pick").registry.buffers = function(local_opts, opts)
return require("mini.pick").start(opts)
end
local miniclue = require('mini.clue')
miniclue.setup({ -- cute prompts about bindings
triggers = {