Fix docgen and lsp-stop documentation

This commit is contained in:
Philipp Mildenberger 2023-03-18 23:41:38 +01:00
parent 60a6af1fea
commit 7d20740b5b
3 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@
| `:update`, `:u` | Write changes only if the file has been modified. | | `:update`, `:u` | Write changes only if the file has been modified. |
| `:lsp-workspace-command` | Open workspace command picker | | `:lsp-workspace-command` | Open workspace command picker |
| `:lsp-restart` | Restarts the language servers used by the current doc | | `:lsp-restart` | Restarts the language servers used by the current doc |
| `:lsp-stop` | Stops the Language Server that is in use by the current doc | | `:lsp-stop` | Stops the language servers that are used by the current doc |
| `:tree-sitter-scopes` | Display tree sitter scopes, primarily for theming and development. | | `:tree-sitter-scopes` | Display tree sitter scopes, primarily for theming and development. |
| `:debug-start`, `:dbg` | Start a debug session from a given template with given parameters. | | `:debug-start`, `:dbg` | Start a debug session from a given template with given parameters. |
| `:debug-remote`, `:dbg-tcp` | Connect to a debug adapter by TCP address and start a debugging session from a given template with given parameters. | | `:debug-remote`, `:dbg-tcp` | Connect to a debug adapter by TCP address and start a debugging session from a given template with given parameters. |

View File

@ -2635,7 +2635,7 @@ fn clear_register(
TypableCommand { TypableCommand {
name: "lsp-stop", name: "lsp-stop",
aliases: &[], aliases: &[],
doc: "Stops the Language Server that is in use by the current doc", doc: "Stops the language servers that are used by the current doc",
fun: lsp_stop, fun: lsp_stop,
signature: CommandSignature::none(), signature: CommandSignature::none(),
}, },

View File

@ -97,8 +97,8 @@ pub fn lang_features() -> Result<String, DynError> {
} }
row.push( row.push(
lc.language_servers lc.language_servers
.iter() .keys()
.filter_map(|ls| config.language_server.get(ls.name())) .filter_map(|ls| config.language_server.get(ls))
.map(|s| md_mono(&s.command.clone())) .map(|s| md_mono(&s.command.clone()))
.collect::<Vec<_>>() .collect::<Vec<_>>()
.join(", "), .join(", "),