dotfiles/home-manager/modules/vscode.nix

49 lines
1.3 KiB
Nix
Raw Normal View History

2024-10-06 15:25:05 -05:00
{
pkgs,
lib,
...
}: {
programs = {
vscode = {
enable = true;
package = pkgs.vscode;
# keybindings = [
# {
# key = "ctrl+c";
# command = "editor.action.clipboardCopyAction";
# when = "textInputFocus";
# }
# ];
extensions = with pkgs.vscode-extensions; [
eamodio.gitlens
catppuccin.catppuccin-vsc
james-yu.latex-workshop
jnoortheen.nix-ide
kamadorueda.alejandra
mkhl.direnv
pkief.material-icon-theme
streetsidesoftware.code-spell-checker
tamasfe.even-better-toml
esbenp.prettier-vscode
mattn.lisp
haskell.haskell
];
userSettings = {
"git.confirmSync" = false;
"editor.insertSpaces" = false;
"files.autoSave" = "afterDelay";
"git.enableSmartCommit" = true;
"nix.enableLanguageServer" = true;
"nix.serverPath" = lib.getExe pkgs.nil;
"nix.formatterPath" = lib.getExe pkgs.alejandra;
"window.menuBarVisibility" = "toggle";
"workbench.iconTheme" = "material-icon-theme";
"workbench.startupEditor" = "none";
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.statusBar.visible" = false;
"editor.multiCursorLimit" = 700000;
};
};
};
}