Compare commits

..

No commits in common. "fea701c7b85002d4899bee1a27ad54020cc026ae" and "80eaacd3a36d553767ec0eaceaf29db8bb8c445c" have entirely different histories.

2 changed files with 30 additions and 43 deletions

View file

@ -22,17 +22,12 @@
indent-guides.render = true; indent-guides.render = true;
}; };
}; };
}; languages = [
# The builtin languages options have issues {
# https://github.com/nix-community/home-manager/issues/3299 name = "nix";
xdg.configFile."helixLanguages" = { formatter.command = "nixpkgs-fmt";
target = "helix/languages.toml"; }
text = '' ];
[language-server.nil]
config.nil.formatting.command = [ "nixpkgs-fmt" ]
[[language]]
name = "nix"
'';
}; };
}; };
} }

View file

@ -2,39 +2,31 @@
let inputs = flakeSelf.inputs; in let inputs = flakeSelf.inputs; in
{ {
nixpkgs.overlays = [ inputs.catppuccin-vsc.overlays.default ]; nixpkgs.overlays = [ inputs.catppuccin-vsc.overlays.default ];
home-manager.users.toast = { home-manager.users.toast.programs.vscode = {
home.packages = with pkgs; [ enable = true;
nixpkgs-fmt package = pkgs.vscodium;
mutableExtensionsDir = false;
extensions = with inputs.vscode-extensions.extensions.x86_64-linux.open-vsx; [
jnoortheen.nix-ide
(pkgs.catppuccin-vsc.override {
workbenchMode = "flat";
extraBordersEnabled = true;
})
catppuccin.catppuccin-vsc-icons
waderyan.gitblame
]; ];
programs.vscode = { userSettings = {
enable = true; # VSCode doesn't like nested settings
package = pkgs.vscodium; # https://stackoverflow.com/questions/74134436/is-it-possible-to-express-settings-in-vs-codes-settings-json-where-each-dot-sep
mutableExtensionsDir = false; # TODO: write a function that unnests settings
extensions = with inputs.vscode-extensions.extensions.x86_64-linux.open-vsx; [ "workbench.colorTheme" = "Catppuccin Mocha";
jnoortheen.nix-ide "workbench.iconTheme" = "catppuccin-mocha";
(pkgs.catppuccin-vsc.override { "editor.fontFamily" = "JetBrainsMono Nerd Font";
workbenchMode = "flat"; "editor.semanticHighlighting.enabled" = true;
extraBordersEnabled = true; "nix.enableLanguageServer" = true;
}) "nix.serverPath" = "${pkgs.nil}/bin/nil";
catppuccin.catppuccin-vsc-icons "terminal.integrated.minimumContrastRatio" = 1;
waderyan.gitblame "window.titleBarStyle" = "custom";
];
userSettings = {
# VSCode doesn't like nested settings
# https://stackoverflow.com/questions/74134436/is-it-possible-to-express-settings-in-vs-codes-settings-json-where-each-dot-sep
# TODO: write a function that unnests settings
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.iconTheme" = "catppuccin-mocha";
"editor.fontFamily" = "JetBrainsMono Nerd Font";
"editor.semanticHighlighting.enabled" = true;
"nix.enableLanguageServer" = true;
"nix.serverPath" = "${pkgs.nil}/bin/nil";
"nix.serverSettings" = {
"nil"."formatting"."command" = [ "nixpkgs-fmt" ];
};
"terminal.integrated.minimumContrastRatio" = 1;
"window.titleBarStyle" = "custom";
};
}; };
}; };
} }