feat(help ui): allow custom names to be provided for custom keybinds (#485)

This commit is contained in:
Luke Kershaw
2021-07-06 19:43:35 +01:00
committed by GitHub
parent 5417b9c57b
commit fd7f60e242
2 changed files with 8 additions and 6 deletions

View File

@@ -142,7 +142,7 @@ function M.setup()
if vim.g.nvim_tree_disable_default_keybindings == 1 then
M.View.bindings = user_mappings
else
ok, result = pcall(vim.fn.extend, M.View.bindings, user_mappings)
local ok, result = pcall(vim.fn.extend, M.View.bindings, user_mappings)
if not ok then
-- TODO: remove this in a few weeks
warn_wrong_mapping()