From 505eb840d3c9db1ce3191b0fc028e6fb5dd9019e Mon Sep 17 00:00:00 2001 From: Nicholas Novak <34256932+NickyBoy89@users.noreply.github.com> Date: Sun, 3 May 2026 14:37:54 -0700 Subject: [PATCH] feat: Added keybinds for nerdtree --- nvim/.config/nvim/init.lua | 2 +- nvim/.config/nvim/plugin/keybinds.lua | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index 15fc275..e90da35 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -636,7 +636,7 @@ require('lazy').setup({ { -- Highlight, edit, and navigate code "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", - main = "nvim-treesitter.configs", -- Sets main module to use for opts + main = "nvim-treesitter.config", -- Sets main module to use for opts -- [[ Configure Treesitter ]] See `:help nvim-treesitter` opts = { ensure_installed = { diff --git a/nvim/.config/nvim/plugin/keybinds.lua b/nvim/.config/nvim/plugin/keybinds.lua index 5afa657..73fa66f 100644 --- a/nvim/.config/nvim/plugin/keybinds.lua +++ b/nvim/.config/nvim/plugin/keybinds.lua @@ -16,3 +16,9 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the left wind vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) + +vim.keymap.set("n", "n", ":NERDTreeFocus") +vim.keymap.set("n", "", ":NERDTree") +vim.keymap.set("n", "", ":NERDTreeToggle") +vim.keymap.set("n", "", ":NERDTreeFind") +vim.keymap.set("n", "rf", ":NERDTreeRefreshRoot")