refactor: temp code for better fzf_colors

This commit is contained in:
Folke Lemaitre 2024-06-10 17:10:25 +02:00
parent 26254487fb
commit 6a07e6522a
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 24 additions and 22 deletions

View file

@ -9,6 +9,7 @@ local M = setmetatable({}, {
---@class lazyvim.util.pick.Opts: table<string, any>
---@field root? boolean
---@field cwd? string
---@field buf? number
---@field show_untracked? boolean
---@type table<string, string>
@ -30,7 +31,7 @@ function M.open(command, opts)
end
if not opts.cwd and opts.root ~= false then
opts.cwd = LazyVim.root()
opts.cwd = LazyVim.root({ buf = opts.buf })
end
local cwd = opts.cwd or vim.uv.cwd()