mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
refactor: ...
This commit is contained in:
parent
d97100c8cc
commit
d27db884f2
1 changed files with 3 additions and 7 deletions
|
|
@ -178,12 +178,9 @@ return {
|
|||
}
|
||||
end,
|
||||
config = function(_, opts)
|
||||
local defaults
|
||||
|
||||
if opts[1] == "default-title" then
|
||||
-- use the same prompt for all pickers for profile `default-title` and
|
||||
-- profiles that use `default-title` as base profile
|
||||
defaults = require("fzf-lua.profiles.default-title")
|
||||
local function fix(t)
|
||||
t.prompt = t.prompt ~= nil and " " or nil
|
||||
for _, v in pairs(t) do
|
||||
|
|
@ -191,12 +188,11 @@ return {
|
|||
fix(v)
|
||||
end
|
||||
end
|
||||
return t
|
||||
end
|
||||
fix(defaults)
|
||||
opts = vim.tbl_deep_extend("force", fix(require("fzf-lua.profiles.default-title")), opts)
|
||||
opts[1] = nil
|
||||
end
|
||||
|
||||
opts = vim.tbl_deep_extend("force", defaults or {}, opts)
|
||||
|
||||
require("fzf-lua").setup(opts)
|
||||
end,
|
||||
init = function()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue