summaryrefslogtreecommitdiff
path: root/lua/config/99-nvim-tree-config.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config/99-nvim-tree-config.lua')
-rw-r--r--lua/config/99-nvim-tree-config.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/config/99-nvim-tree-config.lua b/lua/config/99-nvim-tree-config.lua
new file mode 100644
index 0000000..2f4a048
--- /dev/null
+++ b/lua/config/99-nvim-tree-config.lua
@@ -0,0 +1,10 @@
+-- nvim-tree configuration
+-- Preserve the original behavior: don't automatically open the tree when
+-- editing a directory. Use <leader>nt to toggle it via your mappings file.
+require('nvim-tree').setup({
+ hijack_directories = {
+ enable = true,
+ auto_open = false,
+ },
+})
+