From fd2bfea80a574e513820fee21e29848489b901e9 Mon Sep 17 00:00:00 2001 From: igorkhalip-KidouSystems Date: Wed, 26 Feb 2025 14:01:50 -0500 Subject: [PATCH] added neovim tree navigation plugin --- init.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/init.lua b/init.lua index 3173de94..2d9126ad 100644 --- a/init.lua +++ b/init.lua @@ -1017,6 +1017,36 @@ require('lazy').setup({ -- Or use telescope! -- In normal mode type `sh` then write `lazy.nvim-plugin` -- you can continue same window with `sr` which resumes last telescope search + { + 'nvim-neo-tree/neo-tree.nvim', + branch = 'v2.x', -- ensure you're using the correct branch version + dependencies = { + 'nvim-lua/plenary.nvim', + 'MunifTanjim/nui.nvim', + 'nvim-tree/nvim-web-devicons', -- only if you want icons + }, + config = function() + require('neo-tree').setup { + close_if_last_window = true, -- Close Neo-tree if it is the last window + filesystem = { + use_libuv_file_watcher = true, -- uses OS file watchers for better performance + }, + window = { + width = 30, + position = 'left', + }, + default_component_configs = { + icon = { + folder_closed = '', + folder_open = '', + folder_empty = '', + }, + }, + } + -- Map e to toggle neo-tree + vim.keymap.set('n', 'e', ':Neotree toggle', { desc = 'Toggle Neo-tree File Explorer' }) + end, + }, }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the