Skip to content

Commit 7087af8

Browse files
committed
fix(keypress): use <cmd> instead of : to avoid triggering CmdLineEnter
fixes #1417
1 parent c231933 commit 7087af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local M = {}
44

55
-- TODO: remove this once the cb property is not supported in mappings
66
function M.nvim_tree_callback(callback_name)
7-
return string.format(":lua require'nvim-tree.actions.dispatch'.dispatch('%s')<CR>", callback_name)
7+
return string.format("<cmd>lua require'nvim-tree.actions.dispatch'.dispatch('%s')<CR>", callback_name)
88
end
99

1010
return M

0 commit comments

Comments
 (0)