run rust-analyzer from rustup

pull/2/head
Alpha Chen 2 years ago
parent e7df919740
commit b4ffd0ab01
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -90,8 +90,8 @@
:settings {:python {:analysis {:autoImportCompletions true}}}}) :settings {:python {:analysis {:autoImportCompletions true}}}})
(setup-lsp :rust_analyzer (setup-lsp :rust_analyzer
{:on_attach on-attach {:on_attach on-attach
:cmd [:rustup :run :stable :rust-analyzer]
:settings {:rust-analyzer {:checkOnSave {:command :clippy}}}}) :settings {:rust-analyzer {:checkOnSave {:command :clippy}}}})
(setup-lsp :tsserver {:on_attach (on-attach-do attach-navic disable-fmt)}) (setup-lsp :tsserver {:on_attach (on-attach-do attach-navic disable-fmt)})
(setup-lsp :typeprof) (setup-lsp :typeprof)
(setup-lsp :vuels {:on_attach (on-attach-do attach-navic disable-fmt)})) (setup-lsp :vuels {:on_attach (on-attach-do attach-navic disable-fmt)}))

Loading…
Cancel
Save