run rust-analyzer from rustup
change
commit b4ffd0ab01d1b23f87f73fb587fa4e42dc8e4f73
author Alpha Chen <alpha@kejadlen.dev>
date
parent e7df9197
diff --git a/.config/nvim/fnl/lsp.fnl b/.config/nvim/fnl/lsp.fnl
index 73946381..a358b1b4 100644
--- a/.config/nvim/fnl/lsp.fnl
+++ b/.config/nvim/fnl/lsp.fnl
@@ -90,8 +90,8 @@
               :settings {:python {:analysis {:autoImportCompletions true}}}})
   (setup-lsp :rust_analyzer
              {:on_attach on-attach
+              :cmd [:rustup :run :stable :rust-analyzer]
               :settings {:rust-analyzer {:checkOnSave {:command :clippy}}}})
   (setup-lsp :tsserver {:on_attach (on-attach-do attach-navic disable-fmt)})
   (setup-lsp :typeprof)
   (setup-lsp :vuels {:on_attach (on-attach-do attach-navic disable-fmt)}))
-