blob: 37ddbc0246f85af9578e0a3f50bce98cfd63eb05 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
local configs = require 'nvim_lsp/configs'
local util = require 'nvim_lsp/util'
local lsp = vim.lsp
configs.rust_analyzer = {
default_config = util.utf8_config {
cmd = {"rust-analyzer"};
filetypes = {"rust"};
root_dir = util.root_pattern("Cargo.toml");
log_level = lsp.protocol.MessageType.Warning;
};
docs = {
package_json = "https://github.com/rust-analyzer/rust-analyzer/raw/master/editors/code/package.json";
description = [[
https://github.com/rust-analyzer/rust-analyzer
rust-analyzer (aka rls 2.0), a language server for Rust
See [docs](https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/user#settings) for extra settings.
]];
default_config = {
root_dir = [[root_pattern("Cargo.toml")]];
};
};
};
-- vim:et ts=2 sw=2
|