nvim: reformat

This commit is contained in:
Daniel Lundin 2024-12-30 08:02:33 +01:00
parent 461f3a9a46
commit 714cbcb8a9
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI

View file

@ -71,6 +71,7 @@ MiniPick.registry.files_root = function(local_opts)
local_opts.tool = "rg"
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" }
local root_dir = vim.fs.dirname(vim.fs.find(root_patterns, { upward = true })[1])