From 529898343aed91872813833b1fa6bdf688cc4b2e Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Thu, 12 Feb 2026 18:21:04 +0300 Subject: 12.02.2026 --- config/nvim/lua/plugins/tree.lua | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'config/nvim/lua/plugins/tree.lua') diff --git a/config/nvim/lua/plugins/tree.lua b/config/nvim/lua/plugins/tree.lua index 30c0599..e002f49 100644 --- a/config/nvim/lua/plugins/tree.lua +++ b/config/nvim/lua/plugins/tree.lua @@ -20,6 +20,7 @@ return { }, git = { enable = true, + ignore = false, }, renderer = { group_empty = true, @@ -37,4 +38,20 @@ return { enable = true, }, }, -} + keys = { + { + "", + function() + local api = require("nvim-tree.api") + local global_cwd = vim.fn.getcwd(-1, -1) + api.tree.change_root(global_cwd) + end, + desc = "Change tree root to CWD", + }, + { + "", + "NvimTreeToggle", + desc = "Toggle file tree", + }, + }, +} \ No newline at end of file -- cgit v1.2.3