mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
chore(vim): add mapping for finding the current file in NvimTree
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user