return { "nvim-neo-tree/neo-tree.nvim", dependencies = { "nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended "MunifTanjim/nui.nvim", }, config = function() vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) local ntree = require 'neo-tree' ntree.setup({ close_if_last_window = true, window = { width = 30, mappings = { ["o"] = "open", [''] = "open", ["F"] = "clear_filter", ['e'] = function() vim.api.nvim_command('Neotree focus filesystem left') end, ['b'] = function() vim.api.nvim_command('Neotree focus buffers left') end, ['g'] = function() vim.api.nvim_command('Neotree focus git_status left') end, } }, filesystem = { follow_current_file = true }, source_selector = { winbar = true } }) end }