local setup = { source_selector = { winbar = true, -- toggle to show selector on winbar statusline = false, -- toggle to show selector on statusline show_scrolled_off_parent_node = false, -- this will replace the tabs with the parent path -- of the top visible node when scrolled down. sources = { { source = "filesystem" }, { source = "buffers" }, { source = "git_status" }, }, }, } return { { "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", }, config = function() require("neo-tree").setup(setup) -- Define key mappings here to ensure they are set after the plugin is loaded vim.api.nvim_set_keymap("n", "n", "Neotree toggle", { noremap = true, silent = true }) end, keys = "n", -- Optionally specify here to load the plugin on this keypress }, }