diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/rls.lua | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lua/lspconfig/rls.lua b/lua/lspconfig/rls.lua index a1b15d9f..6ee3f327 100644 --- a/lua/lspconfig/rls.lua +++ b/lua/lspconfig/rls.lua @@ -8,7 +8,6 @@ configs.rls = { root_dir = util.root_pattern("Cargo.toml"); }; docs = { - package_json = "https://raw.githubusercontent.com/rust-lang/rls-vscode/master/package.json"; description = [[ https://github.com/rust-lang/rls @@ -16,6 +15,20 @@ rls, a language server for Rust See https://github.com/rust-lang/rls#setup to setup rls itself. See https://github.com/rust-lang/rls#configuration for rls-specific settings. +All settings listed on the rls configuration section of the readme +must be set under settings.rust as follows: + +```lua +nvim_lsp.rls.setup { + settings = { + rust = { + unstable_features = true, + build_on_save = false, + all_features = true, + }, + }, +} +``` If you want to use rls for a particular build, eg nightly, set cmd as follows: |
