{ programs.nixvim = { keymaps = [ { mode = "n"; key = "n"; action = ":Neotree reveal focus"; options.desc = "Focus Neotree and reveal current file"; options.silent = true; } { mode = "n"; key = "N"; action = ":Neotree close"; options.desc = "Close Neotree"; options.silent = true; } ]; plugins.neo-tree = { enable = true; closeIfLastWindow = true; filesystem.filteredItems.forceVisibleInEmptyFolder = true; window = { width = 30; autoExpandWidth = false; }; }; }; }