Skip to content

Commit

Permalink
mapping update for sync, C-i used by nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Badragan authored and MagicDuck committed May 11, 2024
1 parent 5825056 commit 28550f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lua/grug-far/opts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@ M.defaultOptions = {
-- set to '' to unset. Unset mappings will be removed from the help header
-- They are all mappings for both insert and normal mode except for gotoLocation
-- which is normal mode only. The distinction is mostly due to how they tend to
-- be used and due to my brain short-circuiting while writing this :P.
-- Would be good to improve this in the future if there is enough of a need.
-- be used and in order to show something that is not too busy-looking in the help menu
keymaps = {
-- normal and insert mode
replace = '<C-enter>',
qflist = '<C-q>',
syncLocations = '<C-i>',
syncLocations = '<C-s>',
close = '<C-x>',

-- normal mode only
Expand Down
2 changes: 1 addition & 1 deletion lua/grug-far/render/help.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ local function renderHelp(params, context)
vim.fn.join(vim.tbl_filter(function(m) return m end, {
printMapping('Replace: ', keymaps.replace),
printMapping('Quickfix List: ', keymaps.qflist),
printMapping('Goto Location: ', keymaps.gotoLocation),
printMapping('Goto Location: n_', keymaps.gotoLocation),
printMapping('Sync Edits: ', keymaps.syncLocations),
printMapping('Close: ', keymaps.close),
}), ' | '),
Expand Down

0 comments on commit 28550f8

Please sign in to comment.