Skip to content

Commit

Permalink
feat: Update vscode (nix ide) configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
sudosubin committed Mar 17, 2024
1 parent c2325b5 commit b398324
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/shared/programs/vscode/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let
".mac, .windows, .linux" = "--monaco-monospace-font: ${monospace}, monospace !important;";
".quick-input-widget" = "font-family: ${monospace} !important;";
".search-view .search-widgets-container" = "font-family: ${monospace} !important;";
".monaco-list-rows, .monaco-findInput, .monaco-inputbox" = "font-family: ${monospace} !important;";
".monaco-tree-sticky-container, .monaco-list-rows, .monaco-findInput, .monaco-inputbox" = "font-family: ${monospace} !important;";
};

toCss = stylesheet: strings.concatStrings (attrsets.mapAttrsToList (key: value: "${key}{${value}}") stylesheet);
Expand Down
10 changes: 10 additions & 0 deletions modules/shared/programs/vscode/files/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,16 @@

// language (nix)
"nix.enableLanguageServer": true,
"nix.serverSettings": {
"nil": {
"diagnostics": {
"ignored": ["unused_binding", "unused_with"]
},
"formatting": {
"command": ["nixpkgs-fmt"]
}
}
},
"[nix]": {
"editor.tabSize": 2,
"editor.formatOnSave": true
Expand Down

0 comments on commit b398324

Please sign in to comment.