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

@@ -69,7 +69,7 @@ function M.change_root(filepath, bufnr)
end
---@deprecated
M.on_keypress = require("nvim-tree.actions").on_keypress
M.on_keypress = require("nvim-tree.actions.dispatch").dispatch
function M.toggle(find_file, no_focus, cwd)
if view.is_visible() then