From 371cf13fc438749a0afef68ef76e67a4ec13ab4d Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Fri, 22 Nov 2024 14:14:54 -0700 Subject: [PATCH] Fix vscode config having arrays instead of objects for watcher and normal exclude options --- home-manager/modules/vscode.nix | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/home-manager/modules/vscode.nix b/home-manager/modules/vscode.nix index 09e84cb..e8dcfb9 100644 --- a/home-manager/modules/vscode.nix +++ b/home-manager/modules/vscode.nix @@ -24,22 +24,24 @@ userSettings = { # Editor "editor.fontFamily" = "'FiraCode Nerd Font Mono', 'Droid Sans Mono', 'monospace', monospace"; + "editor.indentSize" = "tabSize"; + "editor.tabSize" = 4; # JJ - "files.watcherExclude" = [ - "**/.git/objects/**" - "**/.git/subtree-cache/**" - "**/.hg/store/**" - "**/.jj" - ]; - "files.exclude" = [ - "**/.git" - "**/.jj" - "**/.svn" - "**/.hg" - "**/CVS" - "**/.DS_Store" - "**/Thumbs.db" - ]; + "files.watcherExclude" = { + "**/.git/objects/**" = true; + "**/.git/subtree-cache/**" = true; + "**/.hg/store/**" = true; + "**/.jj" = true; + }; + "files.exclude" = { + "**/.git" = true; + "**/.jj" = true; + "**/.svn" = true; + "**/.hg" = true; + "**/CVS" = true; + "**/.DS_Store" = true; + "**/Thumbs.db" = true; + }; # Nix "nix.enableLanguageServer" = true; "nix.serverPath" = "nixd";