refactor(actions): move on_keypress to dispatch module

This commit is contained in:
kiyan
2022-07-09 11:43:58 +02:00
parent b81ab199a5
commit 63831d5179
4 changed files with 104 additions and 93 deletions

View File

@@ -4,7 +4,7 @@ local M = {}
-- TODO: remove this once the cb property is not supported in mappings
function M.nvim_tree_callback(callback_name)
return string.format(":lua require'nvim-tree.actions'.on_keypress('%s')<CR>", callback_name)
return string.format(":lua require'nvim-tree.actions.dispatch'.dispatch('%s')<CR>", callback_name)
end
return M