From b035c6494e7417660a42b65128d6abe8fffc1f72 Mon Sep 17 00:00:00 2001 From: Kiril Date: Sun, 19 May 2024 11:57:25 +0100 Subject: [PATCH] Add Neotreee auto-focus mechanism --- lua/plugins/neotree.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua index db7d0d9..f933732 100644 --- a/lua/plugins/neotree.lua +++ b/lua/plugins/neotree.lua @@ -56,5 +56,14 @@ return { config = function() --vim.keymap.set("n", "", ":Neotree filesystem toggle left") vim.keymap.set("n", "", toggle, {}) + require("neo-tree").setup({ + filesystem = { + filtered_items = { + visible = true, + hide_dotfiles = false, + hide_gitignored = true, + }, + }, + }) end, }