mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +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')
|
local status, nvim_tree = pcall(require, 'nvim-tree')
|
||||||
if (not status) then return end
|
if (not status) then return end
|
||||||
|
|
||||||
nvim_tree.setup({})
|
nvim_tree.setup()
|
||||||
|
|
||||||
--- Mappings
|
--- Mappings
|
||||||
local opts = { noremap = true, silent = true }
|
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>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)
|
vim.api.nvim_set_keymap('n', '<leader>ntr', [[<Cmd>:NvimTreeRefresh<CR>]], opts)
|
||||||
|
|||||||
Reference in New Issue
Block a user