fix(keypress): use <cmd> instead of : to avoid triggering CmdLineEnter

fixes #1417
This commit is contained in:
kiyan 2022-07-14 09:32:26 +02:00
parent c231933fcd
commit 7087af83f3

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.dispatch'.dispatch('%s')<CR>", callback_name)
return string.format("<cmd>lua require'nvim-tree.actions.dispatch'.dispatch('%s')<CR>", callback_name)
end
return M