nix-config/modules/home/vscode/default.nix

64 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2024-09-30 23:05:28 -04:00
{pkgs, ...}: {
programs.vscode = {
enable = true;
2024-10-01 16:10:54 -04:00
package =
if pkgs.hostPlatform.isDarwin
then pkgs.vscode
else pkgs.vscode.fhsWithPackages (ps: with ps; [rustup zlib openssl.dev pkg-config]);
2024-09-30 23:05:28 -04:00
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons
llvm-vs-code-extensions.vscode-clangd
kamadorueda.alejandra
mkhl.direnv
usernamehw.errorlens
vadimcn.vscode-lldb
vscodevim.vim
];
userSettings = {
"files.autoSave" = "afterDelay";
2024-10-27 17:54:13 -04:00
"editor.fontFamily" = "Iosevka Comfy Motion";
2024-09-30 23:05:28 -04:00
"editor.fontLigatures" = true;
2024-10-01 16:10:54 -04:00
"editor.fontSize" =
if pkgs.hostPlatform.isDarwin
then 14
else 16;
2024-09-30 23:05:28 -04:00
"editor.formatOnSave" = true;
"editor.minimap.enabled" = false;
2024-10-01 16:10:54 -04:00
"git.autofetch" = true;
"git.confirmSync" = false;
"git.enableSmartCommit" = true;
2024-09-30 23:05:28 -04:00
"vim.camelCaseMotion.enable" = true;
"vim.smartRelativeLine" = false;
"vim.sneak" = true;
"vim.useSystemClipboard" = true;
2024-10-01 16:10:54 -04:00
"vim.normalModeKeyBindingsNonRecursive" = [
{
before = ["K"];
commands = ["editor.action.showHover"];
silent = true;
}
];
"mesonbuild.downloadLanguageServer" = true;
"terminal.integrated.fontSize" =
if pkgs.hostPlatform.isDarwin
then 14
else 16;
2024-09-30 23:05:28 -04:00
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.iconTheme" = "catppuccin-mocha";
"window.menuBarVisibility" = "toggle";
"window.titleBarStyle" = "custom";
};
};
}