From 9e9b28d6eb669a418976dcbc51a94dd5c6260a3d Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 6 Aug 2023 11:25:35 +0530 Subject: [PATCH] setup neo-tree --- home/programs/neovim.nix | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/home/programs/neovim.nix b/home/programs/neovim.nix index 6633ce6..3770c13 100644 --- a/home/programs/neovim.nix +++ b/home/programs/neovim.nix @@ -48,7 +48,26 @@ action = "noh"; }; "w" = { - action = "bdeletebnext>"; + action = "bdeletebnext"; + }; + "1" = { + action = ":Neotree toggle"; + }; + }; + }; + plugins = { + neo-tree = { + enable = true; + addBlankLineAtTop = true; + enableDiagnostics = true; + enableGitStatus = true; + closeIfLastWindow = true; + buffers = { + followCurrentFile = true; + }; + filesystem = { + followCurrentFile = true; + useLibuvFileWatcher = true; }; }; };