diff --git a/lua/fzf-lua/defaults.lua b/lua/fzf-lua/defaults.lua index 3be99995..3d2820b7 100644 --- a/lua/fzf-lua/defaults.lua +++ b/lua/fzf-lua/defaults.lua @@ -759,6 +759,12 @@ M.defaults.marks = { }, } +M.defaults.changes = { + cmd = "changes", + prompt = "Changes> ", + h1 = "change", +} + M.defaults.jumps = { prompt = "Jumps> ", cmd = "jumps", diff --git a/lua/fzf-lua/providers/nvim.lua b/lua/fzf-lua/providers/nvim.lua index 67ab1036..5391ccb3 100644 --- a/lua/fzf-lua/providers/nvim.lua +++ b/lua/fzf-lua/providers/nvim.lua @@ -109,10 +109,7 @@ M.search_history = function(opts) end M.changes = function(opts) - opts = opts or {} - opts.cmd = "changes" - opts.prompt = opts.prompt or "Changes> " - opts.h1 = opts.h1 or "change" + opts = config.normalize_opts(opts, "changes") return M.jumps(opts) end