Skip to content

Commit

Permalink
fix(changes): add defaults values for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmithgh authored and ibhagwan committed Jan 20, 2024
1 parent 7b7e80d commit 36195a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions lua/fzf-lua/defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,12 @@ M.defaults.marks = {
},
}

M.defaults.changes = {
cmd = "changes",
prompt = "Changes> ",
h1 = "change",
}

M.defaults.jumps = {
prompt = "Jumps> ",
cmd = "jumps",
Expand Down
5 changes: 1 addition & 4 deletions lua/fzf-lua/providers/nvim.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 36195a2

Please sign in to comment.