diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2020-11-02 23:00:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-02 17:00:23 -0500 |
| commit | aba433c52229268b563ac14f4d07781275d03923 (patch) | |
| tree | 18dcf1cbe975a5411f9c023ee680302c0f15aa90 /lua/telescope/mappings.lua | |
| parent | 54ef9d90d5a032906bfb007113930dac0f665f72 (diff) | |
feat: Actions can now be summed up and center action (#204)
Closes: #182
* Actions can now be summed up and center action
* fix: Make some complicated changes for metatable
* Update documentation
Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
Diffstat (limited to 'lua/telescope/mappings.lua')
| -rw-r--r-- | lua/telescope/mappings.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/mappings.lua b/lua/telescope/mappings.lua index 561bc8b..766f861 100644 --- a/lua/telescope/mappings.lua +++ b/lua/telescope/mappings.lua @@ -16,7 +16,7 @@ mappings.default_mappings = config.values.default_mappings or { ["<Down>"] = actions.move_selection_next, ["<Up>"] = actions.move_selection_previous, - ["<CR>"] = actions.goto_file_selection_edit, + ["<CR>"] = actions.goto_file_selection_edit + actions.center, ["<C-x>"] = actions.goto_file_selection_split, ["<C-v>"] = actions.goto_file_selection_vsplit, ["<C-t>"] = actions.goto_file_selection_tabedit, @@ -30,7 +30,7 @@ mappings.default_mappings = config.values.default_mappings or { n = { ["<esc>"] = actions.close, - ["<CR>"] = actions.goto_file_selection_edit, + ["<CR>"] = actions.goto_file_selection_edit + actions.center, ["<C-x>"] = actions.goto_file_selection_split, ["<C-v>"] = actions.goto_file_selection_vsplit, ["<C-t>"] = actions.goto_file_selection_tabedit, |
