diff options
| author | github-actions <github-actions@github.com> | 2022-12-06 01:43:23 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2022-12-06 01:43:23 +0000 |
| commit | 394887418e9714c4e4626a16257b15e67dc5d893 (patch) | |
| tree | f6024b0e673830d3a31a7d2fecff8031d310f69f | |
| parent | feat: add 'starlark-rust' LSP for starlark and BUILD files (#2291) (diff) | |
| download | nvim-lspconfig-394887418e9714c4e4626a16257b15e67dc5d893.tar nvim-lspconfig-394887418e9714c4e4626a16257b15e67dc5d893.tar.gz nvim-lspconfig-394887418e9714c4e4626a16257b15e67dc5d893.tar.bz2 nvim-lspconfig-394887418e9714c4e4626a16257b15e67dc5d893.tar.lz nvim-lspconfig-394887418e9714c4e4626a16257b15e67dc5d893.tar.xz nvim-lspconfig-394887418e9714c4e4626a16257b15e67dc5d893.tar.zst nvim-lspconfig-394887418e9714c4e4626a16257b15e67dc5d893.zip | |
docs: update server_configurations.md
skip-checks: true
| -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 |
