Skip to content

Commit

Permalink
refactor(configs): use <CR> instead of <Enter> for mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Jun 13, 2024
1 parent 2b54638 commit 3c8f530
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ vim.ui.select = require('dropbar.utils.menu').select
['<C-j>'] = api.fuzzy_find_next,
['<C-p>'] = api.fuzzy_find_prev,
['<C-n>'] = api.fuzzy_find_next,
['<Enter>'] = api.fuzzy_find_click,
['<CR>'] = api.fuzzy_find_click,
['<S-Enter>'] = function()
api.fuzzy_find_click(-1)
end,
Expand Down Expand Up @@ -1422,7 +1422,7 @@ appearance of the fuzzy finder interface.
['<C-j>'] = api.fuzzy_find_next,
['<C-p>'] = api.fuzzy_find_prev,
['<C-n>'] = api.fuzzy_find_next,
['<Enter>'] = api.fuzzy_find_click,
['<CR>'] = api.fuzzy_find_click,
['<S-Enter>'] = function()
api.fuzzy_find_click(-1)
end,
Expand Down
2 changes: 1 addition & 1 deletion doc/dropbar.txt
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ appearance of the fuzzy finder interface.
['<C-j>'] = api.fuzzy_find_next,
['<C-p>'] = api.fuzzy_find_prev,
['<C-n>'] = api.fuzzy_find_next,
['<Enter>'] = api.fuzzy_find_click,
['<CR>'] = api.fuzzy_find_click,
['<S-Enter>'] = function()
api.fuzzy_find_click(-1)
end,
Expand Down
2 changes: 1 addition & 1 deletion lua/dropbar/configs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ M.opts = {
['<C-j>'] = api.fuzzy_find_next,
['<C-p>'] = api.fuzzy_find_prev,
['<C-n>'] = api.fuzzy_find_next,
['<Enter>'] = api.fuzzy_find_click,
['<CR>'] = api.fuzzy_find_click,
['<S-Enter>'] = function()
api.fuzzy_find_click(-1)
end,
Expand Down

0 comments on commit 3c8f530

Please sign in to comment.