some fixes and stuff

This commit is contained in:
Mars 2024-10-01 16:10:54 -04:00
parent 275aa03108
commit ee5244c63f
Signed by: pupbrained
GPG key ID: 874E22DF2F9DFCB5

View file

@ -1,7 +1,10 @@
{pkgs, ...}: {
programs.vscode = {
enable = true;
package = pkgs.vscode.fhsWithPackages (ps: with ps; [rustup zlib openssl.dev pkg-config]);
package =
if pkgs.hostPlatform.isDarwin
then pkgs.vscode
else pkgs.vscode.fhsWithPackages (ps: with ps; [rustup zlib openssl.dev pkg-config]);
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
@ -15,32 +18,40 @@
vscodevim.vim
];
keybindings = [
{
key = "shift+k";
command = "editor.action.showHover";
when = "editorTextFocus";
}
{
key = "ctrl+k ctrl+i";
command = "-editor.action.showHover";
when = "editorTextFocus";
}
];
userSettings = {
"files.autoSave" = "afterDelay";
"editor.fontFamily" = "Maple Mono NF";
"editor.fontLigatures" = true;
"editor.fontSize" = 16;
"editor.fontSize" =
if pkgs.hostPlatform.isDarwin
then 14
else 16;
"editor.formatOnSave" = true;
"editor.minimap.enabled" = false;
"git.autofetch" = true;
"git.confirmSync" = false;
"git.enableSmartCommit" = true;
"vim.camelCaseMotion.enable" = true;
"vim.smartRelativeLine" = false;
"vim.sneak" = true;
"vim.useSystemClipboard" = true;
"vim.normalModeKeyBindingsNonRecursive" = [
{
before = ["K"];
commands = ["editor.action.showHover"];
silent = true;
}
];
"mesonbuild.downloadLanguageServer" = true;
"terminal.integrated.fontSize" =
if pkgs.hostPlatform.isDarwin
then 14
else 16;
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.iconTheme" = "catppuccin-mocha";