fix: move to actions.select as default action (#465)

This commit is contained in:
anott03
2021-01-25 13:20:01 -05:00
committed by GitHub
parent 5bf9e14f10
commit ccbb7f5638
8 changed files with 61 additions and 54 deletions

View File

@@ -251,7 +251,7 @@ files.current_buffer_fuzzy_find = function(opts)
},
sorter = conf.generic_sorter(opts),
attach_mappings = function()
actions._goto_file_selection:enhance {
actions._select:enhance {
post = function()
local selection = actions.get_selected_entry()
vim.api.nvim_win_set_cursor(0, {selection.lnum, 0})
@@ -287,7 +287,7 @@ files.tags = function(opts)
previewer = previewers.ctags.new(opts),
sorter = conf.generic_sorter(opts),
attach_mappings = function()
actions._goto_file_selection:enhance {
actions._select:enhance {
post = function()
local selection = actions.get_selected_entry()