Allow mapping multiple keys to single action.

This commit is contained in:
Kristijan Husak
2020-08-03 18:51:32 +02:00
committed by Kiyan Yazdani
parent caf238d908
commit 0d8b22c1e9
4 changed files with 16 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ end
function M.get_bindings()
local keybindings = vim.g.lua_tree_bindings or {}
return {
edit = keybindings.edit or '<CR>',
edit = keybindings.edit or {'<CR>', 'o'},
edit_vsplit = keybindings.edit_vsplit or '<C-v>',
edit_split = keybindings.edit_split or '<C-x>',
edit_tab = keybindings.edit_tab or '<C-t>',