custom node keymaps (#855)

This commit is contained in:
Carlos Coves Prieto
2022-01-21 11:03:49 +01:00
committed by GitHub
parent 0982c6a35a
commit fa8bb09de4
5 changed files with 153 additions and 116 deletions

View File

@@ -58,6 +58,7 @@ function M.get_icon_state()
}
end
-- 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'.on_keypress('%s')<CR>", callback_name)
end