mapping: Remove center action after select_default action in default mappings. (#974)
This commit is contained in:
@@ -17,7 +17,7 @@ mappings.default_mappings = config.values.default_mappings
|
|||||||
["<Down>"] = actions.move_selection_next,
|
["<Down>"] = actions.move_selection_next,
|
||||||
["<Up>"] = actions.move_selection_previous,
|
["<Up>"] = actions.move_selection_previous,
|
||||||
|
|
||||||
["<CR>"] = actions.select_default + actions.center,
|
["<CR>"] = actions.select_default,
|
||||||
["<C-x>"] = actions.select_horizontal,
|
["<C-x>"] = actions.select_horizontal,
|
||||||
["<C-v>"] = actions.select_vertical,
|
["<C-v>"] = actions.select_vertical,
|
||||||
["<C-t>"] = actions.select_tab,
|
["<C-t>"] = actions.select_tab,
|
||||||
@@ -34,7 +34,7 @@ mappings.default_mappings = config.values.default_mappings
|
|||||||
|
|
||||||
n = {
|
n = {
|
||||||
["<esc>"] = actions.close,
|
["<esc>"] = actions.close,
|
||||||
["<CR>"] = actions.select_default + actions.center,
|
["<CR>"] = actions.select_default,
|
||||||
["<C-x>"] = actions.select_horizontal,
|
["<C-x>"] = actions.select_horizontal,
|
||||||
["<C-v>"] = actions.select_vertical,
|
["<C-v>"] = actions.select_vertical,
|
||||||
["<C-t>"] = actions.select_tab,
|
["<C-t>"] = actions.select_tab,
|
||||||
@@ -198,7 +198,7 @@ mappings.apply_keymap = function(prompt_bufnr, attach_mappings, buffer_keymap)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO: Probalby should not overwrite any keymaps
|
-- TODO: Probably should not overwrite any keymaps
|
||||||
for mode, mode_map in pairs(mappings.default_mappings) do
|
for mode, mode_map in pairs(mappings.default_mappings) do
|
||||||
mode = string.lower(mode)
|
mode = string.lower(mode)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user