|
2 | 2 | inputs, |
3 | 3 | config, |
4 | 4 | pkgs, |
| 5 | + lib', |
5 | 6 | ... |
6 | 7 | }: |
7 | 8 | { |
|
22 | 23 | programs.vscode = { |
23 | 24 | enable = true; |
24 | 25 | package = pkgs.vscodium-fhs; |
25 | | - profiles.default = { |
26 | | - extensions = inputs.nix4vscode.lib.${pkgs.stdenv.hostPlatform.system}.forOpenVsx [ |
27 | | - "eamodio.gitlens" |
28 | | - "github.vscode-github-actions" |
29 | | - "editorconfig.editorconfig" |
30 | | - "usernamehw.errorlens" |
31 | | - "oderwat.indent-rainbow" |
32 | | - "catppuccin.catppuccin-vsc" |
33 | | - "pkief.material-icon-theme" |
| 26 | + profiles = rec { |
| 27 | + default = { |
| 28 | + extensions = inputs.nix4vscode.lib.${pkgs.stdenv.hostPlatform.system}.forOpenVsx [ |
| 29 | + "eamodio.gitlens" |
| 30 | + "github.vscode-github-actions" |
| 31 | + "editorconfig.editorconfig" |
| 32 | + "usernamehw.errorlens" |
| 33 | + "oderwat.indent-rainbow" |
| 34 | + "catppuccin.catppuccin-vsc" |
| 35 | + "pkief.material-icon-theme" |
34 | 36 |
|
35 | | - # Nix |
36 | | - "mkhl.direnv" |
37 | | - "jnoortheen.nix-ide" |
| 37 | + # Nix |
| 38 | + "mkhl.direnv" |
| 39 | + "jnoortheen.nix-ide" |
38 | 40 |
|
39 | | - # C/C++ |
40 | | - "vadimcn.vscode-lldb" |
41 | | - "llvm-vs-code-extensions.vscode-clangd" |
42 | | - ]; |
43 | | - userSettings = { |
44 | | - "editor.minimap.enabled" = false; |
45 | | - "explorer.confirmDragAndDrop" = false; |
46 | | - "diffEditor.ignoreTrimWhitespace" = false; |
47 | | - "editor.formatOnSave" = true; |
48 | | - "editor.formatOnType" = true; |
49 | | - "editor.formatOnPaste" = true; |
| 41 | + # C/C++ |
| 42 | + "vadimcn.vscode-lldb" |
| 43 | + "llvm-vs-code-extensions.vscode-clangd" |
| 44 | + ]; |
| 45 | + userSettings = { |
| 46 | + "editor.minimap.enabled" = false; |
| 47 | + "explorer.confirmDragAndDrop" = false; |
| 48 | + "diffEditor.ignoreTrimWhitespace" = false; |
| 49 | + "editor.formatOnSave" = true; |
| 50 | + "editor.formatOnType" = true; |
| 51 | + "editor.formatOnPaste" = true; |
50 | 52 |
|
51 | | - # Catppuccin |
52 | | - "catppuccin.italicKeywords" = true; |
53 | | - "catppuccin.boldKeywords" = true; |
54 | | - "catppuccin.italicComments" = true; |
55 | | - "workbench.iconTheme" = "material-icon-theme"; |
56 | | - "workbench.colorTheme" = "Catppuccin Mocha"; |
57 | | - "editor.semanticHighlighting.enabled" = true; |
58 | | - "terminal.integrated.minimumContrastRatio" = 1; |
59 | | - "window.titleBarStyle" = "custom"; |
| 53 | + # Catppuccin |
| 54 | + "catppuccin.italicKeywords" = true; |
| 55 | + "catppuccin.boldKeywords" = true; |
| 56 | + "catppuccin.italicComments" = true; |
| 57 | + "workbench.iconTheme" = "material-icon-theme"; |
| 58 | + "workbench.colorTheme" = "Catppuccin Mocha"; |
| 59 | + "editor.semanticHighlighting.enabled" = true; |
| 60 | + "terminal.integrated.minimumContrastRatio" = 1; |
| 61 | + "window.titleBarStyle" = "custom"; |
| 62 | + }; |
| 63 | + }; |
| 64 | + rust = lib'.deepMerge default { |
| 65 | + extensions = inputs.nix4vscode.lib.${pkgs.stdenv.hostPlatform.system}.forOpenVsx [ |
| 66 | + "rust-lang.rust-analyzer" |
| 67 | + ]; |
60 | 68 | }; |
61 | 69 | }; |
62 | 70 | }; |
|
0 commit comments