File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -1017,6 +1017,36 @@ require('lazy').setup({
10171017 -- Or use telescope!
10181018 -- In normal mode type `<space>sh` then write `lazy.nvim-plugin`
10191019 -- you can continue same window with `<space>sr` which resumes last telescope search
1020+ {
1021+ ' nvim-neo-tree/neo-tree.nvim' ,
1022+ branch = ' v2.x' , -- ensure you're using the correct branch version
1023+ dependencies = {
1024+ ' nvim-lua/plenary.nvim' ,
1025+ ' MunifTanjim/nui.nvim' ,
1026+ ' nvim-tree/nvim-web-devicons' , -- only if you want icons
1027+ },
1028+ config = function ()
1029+ require (' neo-tree' ).setup {
1030+ close_if_last_window = true , -- Close Neo-tree if it is the last window
1031+ filesystem = {
1032+ use_libuv_file_watcher = true , -- uses OS file watchers for better performance
1033+ },
1034+ window = {
1035+ width = 30 ,
1036+ position = ' left' ,
1037+ },
1038+ default_component_configs = {
1039+ icon = {
1040+ folder_closed = ' ' ,
1041+ folder_open = ' ' ,
1042+ folder_empty = ' ' ,
1043+ },
1044+ },
1045+ }
1046+ -- Map <leader>e to toggle neo-tree
1047+ vim .keymap .set (' n' , ' <leader>e' , ' :Neotree toggle<CR>' , { desc = ' Toggle Neo-tree File Explorer' })
1048+ end ,
1049+ },
10201050}, {
10211051 ui = {
10221052 -- If you are using a Nerd Font: set icons to an empty table which will use the
You can’t perform that action at this time.
0 commit comments