chore(vim): add mapping for finding the current file in NvimTree

This commit is contained in:
Stefan Imhoff
2022-01-12 10:23:48 +01:00
parent b468a82bff
commit 045e52d389

View File

@@ -4,10 +4,11 @@
local status, nvim_tree = pcall(require, 'nvim-tree')
if (not status) then return end
nvim_tree.setup({})
nvim_tree.setup()
--- Mappings
local opts = { noremap = true, silent = true }
vim.api.nvim_set_keymap('n', '<leader>nt', [[<Cmd>:NvimTreeToggle<CR>]], opts)
vim.api.nvim_set_keymap('n', '<leader>ntf', [[<Cmd>:NvimTreeFindFile<CR>]], opts)
vim.api.nvim_set_keymap('n', '<leader>ntr', [[<Cmd>:NvimTreeRefresh<CR>]], opts)