[LSP] rust - Add support for rust-analyzer via LspInstall. (#178)

This commit is contained in:
James Walmsley 2021-03-28 20:21:09 +01:00 committed by GitHub
parent b23041f4d9
commit 225175c9e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

5
lua/lsp/rust-ls.lua Normal file
View file

@ -0,0 +1,5 @@
require'lspconfig'.rust_analyzer.setup{
cmd = {DATA_PATH .. "/lspinstall/rust/rust-analyzer"},
on_attach = require'lsp'.common_on_attach
}