| 
									
										
										
										
											2025-05-15 19:44:35 -07:00
										 |  |  | return { | 
					
						
							| 
									
										
										
										
											2025-06-10 11:54:52 -07:00
										 |  |  | 	"nvim-neo-tree/neo-tree.nvim", | 
					
						
							|  |  |  | 	branch = "v3.x", | 
					
						
							|  |  |  | 	dependencies = { | 
					
						
							|  |  |  | 		"nvim-lua/plenary.nvim", | 
					
						
							|  |  |  | 		"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended | 
					
						
							|  |  |  | 		"MunifTanjim/nui.nvim", | 
					
						
							|  |  |  | 		-- {"3rd/image.nvim", opts = {}}, -- Optional image support in preview window: See `# Preview Mode` for more information | 
					
						
							|  |  |  | 	}, | 
					
						
							| 
									
										
										
										
											2025-06-27 23:08:27 -07:00
										 |  |  | 	lazy = true, -- neo-tree will lazily load itself | 
					
						
							| 
									
										
										
										
											2025-06-10 11:54:52 -07:00
										 |  |  | 	opts = { | 
					
						
							|  |  |  | 		filesystem = { | 
					
						
							|  |  |  | 			filtered_items = { | 
					
						
							|  |  |  | 				visible = true, | 
					
						
							| 
									
										
										
										
											2025-06-27 23:08:27 -07:00
										 |  |  |         hide_gitignored = true, | 
					
						
							| 
									
										
										
										
											2025-06-10 11:54:52 -07:00
										 |  |  | 			}, | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		event_handlers = { | 
					
						
							|  |  |  | 			{ | 
					
						
							|  |  |  | 				event = "file_opened", | 
					
						
							|  |  |  | 				handler = function(file_path) | 
					
						
							|  |  |  | 					--auto close neo-tree when file is opened | 
					
						
							| 
									
										
										
										
											2025-06-27 23:08:27 -07:00
										 |  |  | 					vim.cmd("Neotree close") | 
					
						
							| 
									
										
										
										
											2025-06-10 11:54:52 -07:00
										 |  |  | 				end, | 
					
						
							|  |  |  | 			}, | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 	}, | 
					
						
							| 
									
										
										
										
											2025-05-15 19:44:35 -07:00
										 |  |  | } |