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, ...}: { {pkgs, ...}: {
programs.vscode = { programs.vscode = {
enable = true; 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; [ extensions = with pkgs.vscode-extensions; [
bbenoist.nix bbenoist.nix
@ -15,32 +18,40 @@
vscodevim.vim vscodevim.vim
]; ];
keybindings = [
{
key = "shift+k";
command = "editor.action.showHover";
when = "editorTextFocus";
}
{
key = "ctrl+k ctrl+i";
command = "-editor.action.showHover";
when = "editorTextFocus";
}
];
userSettings = { userSettings = {
"files.autoSave" = "afterDelay"; "files.autoSave" = "afterDelay";
"editor.fontFamily" = "Maple Mono NF"; "editor.fontFamily" = "Maple Mono NF";
"editor.fontLigatures" = true; "editor.fontLigatures" = true;
"editor.fontSize" = 16; "editor.fontSize" =
if pkgs.hostPlatform.isDarwin
then 14
else 16;
"editor.formatOnSave" = true; "editor.formatOnSave" = true;
"editor.minimap.enabled" = false; "editor.minimap.enabled" = false;
"git.autofetch" = true;
"git.confirmSync" = false;
"git.enableSmartCommit" = true;
"vim.camelCaseMotion.enable" = true; "vim.camelCaseMotion.enable" = true;
"vim.smartRelativeLine" = false; "vim.smartRelativeLine" = false;
"vim.sneak" = true; "vim.sneak" = true;
"vim.useSystemClipboard" = 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.colorTheme" = "Catppuccin Mocha";
"workbench.iconTheme" = "catppuccin-mocha"; "workbench.iconTheme" = "catppuccin-mocha";