aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Mildenberger2023-03-18 22:41:38 +0000
committerPhilipp Mildenberger2023-05-18 19:48:32 +0000
commit7d20740b5b2e115e3075251204ee1ff1901166df (patch)
treee502ac690ab3ec4aff257be72217a421787837cd
parent60a6af1fea64381e66ec935d61ff9250491823a5 (diff)
Fix docgen and lsp-stop documentation
-rw-r--r--book/src/generated/typable-cmd.md2
-rw-r--r--helix-term/src/commands/typed.rs2
-rw-r--r--xtask/src/docgen.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md
index cc2e87ea..0f488dc0 100644
--- a/book/src/generated/typable-cmd.md
+++ b/book/src/generated/typable-cmd.md
@@ -51,7 +51,7 @@
| `:update`, `:u` | Write changes only if the file has been modified. |
| `:lsp-workspace-command` | Open workspace command picker |
| `: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. |
| `: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. |
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
index 38058ed5..5f94b7c4 100644
--- a/helix-term/src/commands/typed.rs
+++ b/helix-term/src/commands/typed.rs
@@ -2635,7 +2635,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
TypableCommand {
name: "lsp-stop",
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,
signature: CommandSignature::none(),
},
diff --git a/xtask/src/docgen.rs b/xtask/src/docgen.rs
index 3bd0592e..d360b4bd 100644
--- a/xtask/src/docgen.rs
+++ b/xtask/src/docgen.rs
@@ -97,8 +97,8 @@ pub fn lang_features() -> Result<String, DynError> {
}
row.push(
lc.language_servers
- .iter()
- .filter_map(|ls| config.language_server.get(ls.name()))
+ .keys()
+ .filter_map(|ls| config.language_server.get(ls))
.map(|s| md_mono(&s.command.clone()))
.collect::<Vec<_>>()
.join(", "),