From 2c8f9d2ed886fa0efca8dd7d627fbc9514a43694 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 22 Apr 2024 23:07:38 +0200 Subject: [PATCH] Exclude .git and node_modules --- lua/plugins/nvim-tree.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/plugins/nvim-tree.lua b/lua/plugins/nvim-tree.lua index 2a6098a..af314fc 100644 --- a/lua/plugins/nvim-tree.lua +++ b/lua/plugins/nvim-tree.lua @@ -33,7 +33,10 @@ return { end api.tree.focus() end, opts('Open: New Tab (unfocused)')) - end + end, + filters = { + custom = { "^\\.git", "^\\node_modules" } + } }) local api = require('nvim-tree.api')