diff --git a/home-manager/IDEs/vscode.nix b/home-manager/IDEs/vscode.nix index 4faf53f..e9723b6 100644 --- a/home-manager/IDEs/vscode.nix +++ b/home-manager/IDEs/vscode.nix @@ -3,43 +3,111 @@ { programs.vscode = { enable = true; - profiles.default.extensions = with pkgs.vscode-extensions; [ - catppuccin.catppuccin-vsc - catppuccin.catppuccin-vsc-icons + profiles.default = { + extensions = with pkgs.vscode-extensions; [ + catppuccin.catppuccin-vsc + catppuccin.catppuccin-vsc-icons - jnoortheen.nix-ide - mhutchie.git-graph - donjayamanne.githistory - eamodio.gitlens + mhutchie.git-graph + donjayamanne.githistory + eamodio.gitlens - # Rust plugins - rust-lang.rust-analyzer - tamasfe.even-better-toml - fill-labs.dependi + streetsidesoftware.code-spell-checker + gruntfuggly.todo-tree + ]; - ms-vscode.cpptools - ]; + userSettings = { + # Theme + "workbench.iconTheme" = "catppuccin-mocha"; + "workbench.colorTheme" = "Catppuccin Mocha"; + "workbench.sideBar.location" = "right"; + "workbench.activityBar.location" = "bottom"; + "editor.fontFamily" = "SauceCodePro"; - profiles.default.userSettings = { - # Theme - "workbench.iconTheme" = "catppuccin-mocha"; - "workbench.colorTheme" = "Catppuccin Mocha"; - "workbench.sideBar.location" = "right"; - "workbench.activityBar.location" = "bottom"; - "editor.fontFamily" = "Source Code Pro"; + # Settings for all files + "files.autoSave" = "off"; - # Settings for all files - "files.autoSave" = "off"; + # Git settings + "git.autofetch" = true; + "git.confirmSync" = false; + "git.alwaysSignOff" = true; + "git.pruneOnFetch" = true; + }; + }; - # Git settings - "git.autofetch" = true; - "git.confirmSync" = false; - "git.alwaysSignOff" = true; - "git.pruneOnFetch" = true; + profiles.home-manager = { + extensions = with pkgs.vscode-extensions; [ + catppuccin.catppuccin-vsc + catppuccin.catppuccin-vsc-icons + mhutchie.git-graph + donjayamanne.githistory + eamodio.gitlens - # Nix lang settings - "[nix]"."editor.tabSize" = 2; + streetsidesoftware.code-spell-checker + gruntfuggly.todo-tree + + # Nix specific extensions + jnoortheen.nix-ide + ]; + + userSettings = { + # Theme + "workbench.iconTheme" = "catppuccin-mocha"; + "workbench.colorTheme" = "Catppuccin Mocha"; + "workbench.sideBar.location" = "right"; + "workbench.activityBar.location" = "bottom"; + "editor.fontFamily" = "SauceCodePro"; + + # Settings for all files + "files.autoSave" = "off"; + + # Git settings + "git.autofetch" = true; + "git.confirmSync" = false; + "git.alwaysSignOff" = true; + "git.pruneOnFetch" = true; + + # Nix lang settings + "[nix]"."editor.tabSize" = 2; + }; + }; + + profiles.rust = { + extensions = with pkgs.vscode-extensions; [ + catppuccin.catppuccin-vsc + catppuccin.catppuccin-vsc-icons + + mhutchie.git-graph + donjayamanne.githistory + eamodio.gitlens + + streetsidesoftware.code-spell-checker + gruntfuggly.todo-tree + + # Rust development + rust-lang.rust-analyzer + tamasfe.even-better-toml + fill-labs.dependi + ]; + + userSettings = { + # Theme + "workbench.iconTheme" = "catppuccin-mocha"; + "workbench.colorTheme" = "Catppuccin Mocha"; + "workbench.sideBar.location" = "right"; + "workbench.activityBar.location" = "bottom"; + "editor.fontFamily" = "SauceCodePro"; + + # Settings for all files + "files.autoSave" = "off"; + + # Git settings + "git.autofetch" = true; + "git.confirmSync" = false; + "git.alwaysSignOff" = true; + "git.pruneOnFetch" = true; + }; }; }; } \ No newline at end of file