Skip to content

Commit

Permalink
removed duplicate in lang-support MD file with vector dedup.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyhutz committed May 3, 2024
1 parent e18b772 commit 3dc1186
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
10 changes: 5 additions & 5 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
| Language | Syntax Highlighting | Treesitter Textobjects | Auto Indent | Default LSP |
| --- | --- | --- | --- | --- |
| ada ||| | `ada_language_server`, `ada_language_server` |
| ada ||| | `ada_language_server` |
| adl |||| |
| agda || | | |
| astro || | | |
Expand Down Expand Up @@ -66,7 +66,7 @@
| glimmer || | | `ember-language-server` |
| glsl |||| |
| gn || | | |
| go |||| `gopls`, `golangci-lint-langserver` |
| go |||| `golangci-lint-langserver`, `gopls` |
| godot-resource || | | |
| gomod || | | `gopls` |
| gotmpl || | | `gopls` |
Expand Down Expand Up @@ -116,7 +116,7 @@
| lua |||| `lua-language-server` |
| make || || |
| markdoc || | | `markdoc-ls` |
| markdown || | | `marksman`, `markdown-oxide` |
| markdown || | | `markdown-oxide`, `marksman` |
| markdown.inline || | | |
| matlab |||| |
| mermaid || | | |
Expand All @@ -143,7 +143,7 @@
| perl |||| `perlnavigator` |
| php |||| `intelephense` |
| php-only || | | |
| pkgbuild |||| `pkgbuild-language-server`, `bash-language-server` |
| pkgbuild |||| `bash-language-server`, `pkgbuild-language-server` |
| pkl || || |
| po ||| | |
| pod || | | |
Expand Down Expand Up @@ -217,6 +217,6 @@
| xit || | | |
| xml || || |
| xtc || | | |
| yaml || || `yaml-language-server`, `ansible-language-server` |
| yaml || || `ansible-language-server`, `yaml-language-server` |
| yuck || | | |
| zig |||| `zls` |
2 changes: 1 addition & 1 deletion xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ helix-term = { path = "../helix-term" }
helix-core = { path = "../helix-core" }
helix-view = { path = "../helix-view" }
helix-loader = { path = "../helix-loader" }
toml = "0.8"
toml = "0.8"
17 changes: 8 additions & 9 deletions xtask/src/docgen.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::helpers;
use crate::path;
use crate::DynError;

use helix_term::commands::TYPABLE_COMMAND_LIST;
use helix_term::health::TsFeature;
use std::fs;
Expand Down Expand Up @@ -95,14 +94,14 @@ pub fn lang_features() -> Result<String, DynError> {
.to_owned(),
);
}
row.push(
lc.language_servers
.iter()
.filter_map(|ls| config.language_server.get(&ls.name))
.map(|s| md_mono(&s.command.clone()))
.collect::<Vec<_>>()
.join(", "),
);
let mut v: Vec<String> = lc.language_servers
.iter()
.filter_map(|ls| config.language_server.get(&ls.name))
.map(|s| md_mono(&s.command.clone()))
.collect::<Vec<_>>();
v.sort();
v.dedup();
row.push(v.as_slice().join(", "));

md.push_str(&md_table_row(&row));
row.clear();
Expand Down

0 comments on commit 3dc1186

Please sign in to comment.