diff options
| -rw-r--r-- | doc/server_configurations.md | 34 | ||||
| -rw-r--r-- | doc/server_configurations.txt | 34 |
2 files changed, 68 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index d2932e0c..da7dc4fb 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -163,6 +163,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [spectral](#spectral) - [sqlls](#sqlls) - [sqls](#sqls) +- [starlark-rust](#starlark-rust) - [steep](#steep) - [stylelint_lsp](#stylelint_lsp) - [sumneko_lua](#sumneko_lua) @@ -6829,6 +6830,39 @@ require'lspconfig'.sqls.setup{} ``` +## starlark-rust + +https://github.com/facebookexperimental/starlark-rust/ +The LSP part of `starlark-rust` is not currently documented, + but the implementation works well for linting. +This gives valuable warnings for potential issues in the code, +but does not support refactorings. + +It can be installed with cargo: https://crates.io/crates/starlark + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.starlark-rust.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "starlark", "--lsp" } + ``` + - `filetypes` : + ```lua + { "star", "bzl", "BUILD.bazel" } + ``` + - `root_dir` : + ```lua + see source file + ``` + + ## steep https://github.com/soutaro/steep diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index d2932e0c..da7dc4fb 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -163,6 +163,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [spectral](#spectral) - [sqlls](#sqlls) - [sqls](#sqls) +- [starlark-rust](#starlark-rust) - [steep](#steep) - [stylelint_lsp](#stylelint_lsp) - [sumneko_lua](#sumneko_lua) @@ -6829,6 +6830,39 @@ require'lspconfig'.sqls.setup{} ``` +## starlark-rust + +https://github.com/facebookexperimental/starlark-rust/ +The LSP part of `starlark-rust` is not currently documented, + but the implementation works well for linting. +This gives valuable warnings for potential issues in the code, +but does not support refactorings. + +It can be installed with cargo: https://crates.io/crates/starlark + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.starlark-rust.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "starlark", "--lsp" } + ``` + - `filetypes` : + ```lua + { "star", "bzl", "BUILD.bazel" } + ``` + - `root_dir` : + ```lua + see source file + ``` + + ## steep https://github.com/soutaro/steep |
