chore: update vscode settings

This commit is contained in:
Nickolaj Jepsen 2025-03-09 19:05:43 +01:00
parent c5f8df4b9f
commit 757a2540ab

View file

@ -2,6 +2,7 @@
pkgsUnstable, pkgsUnstable,
pkgs, pkgs,
inputs, inputs,
config,
lib, lib,
... ...
}: let }: let
@ -12,7 +13,6 @@
mkFormatter = formatter: languages: { mkFormatter = formatter: languages: {
"[${lib.concatStringsSep "][" languages}]" = { "[${lib.concatStringsSep "][" languages}]" = {
"editor.defaultFormatter" = formatter; "editor.defaultFormatter" = formatter;
"editor.formatOnSave" = true;
}; };
}; };
@ -25,14 +25,27 @@ in {
package = vscodePackage; package = vscodePackage;
enableUpdateCheck = true; enableUpdateCheck = true;
enableExtensionUpdateCheck = true; enableExtensionUpdateCheck = true;
keybindings = [
{
"key" = "ctrl+shift+p";
"command" = "editor.action.formatDocument";
}
];
userSettings = lib.mkMerge [ userSettings = lib.mkMerge [
{ {
# General # General
"extensions.ignoreRecommendations" = true; "extensions.ignoreRecommendations" = true;
"telemetry.telemetryLevel" = "off";
# Editor
"editor.linkedEditing" = true;
# Files
"files.autoSave" = "afterDelay";
# Remote # Remote
"remote.SSH.useLocalServer" = false; "remote.SSH.useLocalServer" = false;
"remote.SSH.remotePlatform" = {"*" = "linux";}; "remote.SSH.remotePlatform" = lib.mapAttrs (_name: _value: "linux") config.fireproof.home-manager.programs.ssh.matchBlocks;
# AI # AI
"github.copilot.editor.enableAutoCompletions" = true; "github.copilot.editor.enableAutoCompletions" = true;
@ -41,6 +54,7 @@ in {
# Theme # Theme
"workbench.colorTheme" = "Darcula Theme from IntelliJ"; "workbench.colorTheme" = "Darcula Theme from IntelliJ";
"window.titleBarStyle" = "custom"; "window.titleBarStyle" = "custom";
"editor.fontFamily" = "'Hack Nerd Font', 'Hack', 'monospace', monospace";
# Keybindings # Keybindings
"workbench.commandPalette.experimental.suggestCommands" = true; # Emulates IntelliJ's "Search Everywhere" "workbench.commandPalette.experimental.suggestCommands" = true; # Emulates IntelliJ's "Search Everywhere"
@ -48,7 +62,6 @@ in {
# nix-ide # nix-ide
"nix.enableLanguageServer" = true; "nix.enableLanguageServer" = true;
"nix.serverPath" = lib.getExe pkgs.nil; "nix.serverPath" = lib.getExe pkgs.nil;
"nix.serverSettings" = { "nix.serverSettings" = {
nil.formatting.command = ["nix" "fmt" "--" "--"]; nil.formatting.command = ["nix" "fmt" "--" "--"];
}; };
@ -64,6 +77,9 @@ in {
(allowUnfree github.copilot) (allowUnfree github.copilot)
(allowUnfree github.copilot-chat) (allowUnfree github.copilot-chat)
# Git(hub)
github.vscode-pull-request-github
# Python # Python
ms-pyright.pyright ms-pyright.pyright
ms-python.python ms-python.python