From 045e52d389e243124c9f0e097feb46972cf70947 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Wed, 12 Jan 2022 10:23:48 +0100 Subject: [PATCH] chore(vim): add mapping for finding the current file in NvimTree --- nvim/plugin-config/tree.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvim/plugin-config/tree.lua b/nvim/plugin-config/tree.lua index 77ca70e..3a798e9 100644 --- a/nvim/plugin-config/tree.lua +++ b/nvim/plugin-config/tree.lua @@ -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', 'nt', [[:NvimTreeToggle]], opts) +vim.api.nvim_set_keymap('n', 'ntf', [[:NvimTreeFindFile]], opts) vim.api.nvim_set_keymap('n', 'ntr', [[:NvimTreeRefresh]], opts)