Replace vim.api.nvim_set_keymap with vim.keymap.set

This commit is contained in:
Sonny Bakker 2025-01-03 08:17:21 +01:00
parent 6f512112d8
commit 6115ca4be2
3 changed files with 10 additions and 15 deletions

View file

@ -8,10 +8,7 @@ local function toggle_tree()
api.tree.toggle({ find_file = true, update_root = true, focus = true })
end
vim.api.nvim_set_keymap(
'n', '<C-E>', '',
{ noremap = true, silent = true, callback = toggle_tree }
)
vim.keymap.set('n', '<C-E>', toggle_tree, { noremap = true, silent = true })
local function my_on_attach(bufnr)
local function opts(desc)