From 1b92363b0876841cc8081a4e76d3a2cdf2ead51e Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Tue, 17 Feb 2026 21:28:50 -0800 Subject: [PATCH] Fix rust analyzer in vscode --- home/googlebot.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/home/googlebot.nix b/home/googlebot.nix index b477c1c..8747a1a 100644 --- a/home/googlebot.nix +++ b/home/googlebot.nix @@ -61,7 +61,8 @@ in programs.vscode = { enable = thisMachineIsPersonal; - package = pkgs.vscodium; + # Must use fhs version for vscode-lldb + package = pkgs.vscodium-fhs; profiles.default = { userSettings = { editor.formatOnSave = true; @@ -78,6 +79,15 @@ in lsp.serverPort = 6005; # port needs to match Godot configuration editorPath.godot4 = "godot-mono"; }; + rust-analyzer = { + restartServerOnConfigChange = true; + testExplorer = true; + server.path = "rust-analyzer"; # Use the rust-analyzer from PATH (which is set by nixEnvSelector from the project's flake) + }; + nixEnvSelector = { + useFlakes = true; # This hasn't ever worked for me and I have to use shell.nix... but maybe someday + suggestion = false; # Stop really annoy nagging + }; }; extensions = with pkgs.vscode-extensions; [ bbenoist.nix # nix syntax support