From bc601a6e4fb9a94f71a128f4d7553fb19acce023 Mon Sep 17 00:00:00 2001 From: Kate Adkins Date: Mon, 18 Nov 2024 14:04:45 -0700 Subject: [PATCH] vscode: update extensions and settings for aigis --- nixos/configs/dotfiles/vscode.hm.nix | 14 +++++++++++--- packages/vscode-extensions.nix | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/nixos/configs/dotfiles/vscode.hm.nix b/nixos/configs/dotfiles/vscode.hm.nix index 2aa088c..b3dace4 100644 --- a/nixos/configs/dotfiles/vscode.hm.nix +++ b/nixos/configs/dotfiles/vscode.hm.nix @@ -5,6 +5,11 @@ let # Simple helper to de-stringify invalid tokens. author = name: pkgs.vscode-extensions.${name}; + + # Forces a package to be marked as having linux-aarch64 support. + forceArmLinux = pkg: pkg.overrideAttrs (prev: { + meta.platforms = prev.meta.platforms ++ [ "aarch64-linux" ]; + }); in { @@ -22,7 +27,6 @@ in # appearance oderwat.indent-rainbow - (author "2gua").rainbow-brackets brandonkirbyson.solarized-palenight # behavior @@ -39,12 +43,12 @@ in streetsidesoftware.code-spell-checker # rust - serayuzgur.crates + fill-labs.dependi rust-lang.rust-analyzer njpwerner.autodocstring # python - ms-python.python + (forceArmLinux ms-python.python) # c/c++ ms-vscode.cpptools @@ -57,6 +61,8 @@ in # accessibility / talon, for when our neuro condition is wonk pokey.talon pokey.cursorless + pokey.parse-tree + pokey.command-server ]; @@ -66,6 +72,8 @@ in # Theming. "workbench.colorTheme" = lib.mkForce "Solarized-Palenight"; + # Default to formatting on save. + "editor.formatOnSave" = true; }; diff --git a/packages/vscode-extensions.nix b/packages/vscode-extensions.nix index da8ce34..78023c3 100644 --- a/packages/vscode-extensions.nix +++ b/packages/vscode-extensions.nix @@ -19,6 +19,11 @@ in hash = "sha256-gGTpeOQeIQj2ObyC6504+lzLFUS35RNw5z2/isPRpyM="; }; + + # + # Talon-related extensions. + # + pokey.talon = quickMarketplaceExtension { name = "talon"; publisher = "pokey"; @@ -33,4 +38,17 @@ in hash = "sha256-QIfAu76QhIII8Xnt5lCCVsZAaa57OHszC4ZQuq67MZs="; }; + pokey.parse-tree = quickMarketplaceExtension { + name = "parse-tree"; + publisher = "pokey"; + version = "0.32.0"; + hash = "sha256-SfixHdqXsHYxWUVku6N8+H3xaA5NKXsgGYl3lB7izNA="; + }; + + pokey.command-server = quickMarketplaceExtension { + name = "command-server"; + publisher = "pokey"; + version = "0.10.1"; + hash = "sha256-r70WXsr5+aHv+W5aT6m7NcaEtte1dnWhRyxWWhu0uLM="; + }; }