From 6d7fc7184fad4a5fc3a97810ee849f450a43453f Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sun, 27 Jul 2025 20:10:08 +0200 Subject: [PATCH] Configure nvim-tree to hide macOS system files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add custom filter patterns for common macOS system files - Hide .DS_Store, .AppleDouble, .LSOverride, and other system files - Include resource forks (._*), Spotlight, and Time Machine files - Keep existing dotfiles and git_ignored filter settings - Maintain clean file explorer interface without system clutter 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- modules/nvim.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/nvim.nix b/modules/nvim.nix index 18fd042..b35fdd0 100644 --- a/modules/nvim.nix +++ b/modules/nvim.nix @@ -193,8 +193,21 @@ filters = { dotfiles = true, -- Hide dotfiles by default (H to toggle) git_ignored = false, -- Show gitignored files by default (I to toggle) + custom = { -- Hide macOS system files + ".DS_Store", + ".AppleDouble", + ".LSOverride", + "._.*", + ".DocumentRevisions-V100", + ".fseventsd", + ".Spotlight-V100", + ".TemporaryItems", + ".Trashes", + ".VolumeIcon.icns", + ".com.apple.timemachine.donotpresent", + }, }, }) ''; }; -} \ No newline at end of file +}