From 920dc6b7965fc5fda604e4aaedd8d530958de405 Mon Sep 17 00:00:00 2001 From: Julien Voisin Date: Sun, 25 May 2025 23:50:43 +0200 Subject: [PATCH] Make use of harper via languages.toml Harper supports a [bunch](https://writewithharper.com/docs/integrations/language-server#Supported-Languages) of languages, so let's use it by default for the most useful ones. --- languages.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/languages.toml b/languages.toml index b6ee6e9e9..82f646072 100644 --- a/languages.toml +++ b/languages.toml @@ -1719,6 +1719,7 @@ source = { git = "https://github.com/Flakebi/tree-sitter-tablegen", rev = "3e9c4 name = "mail" scope = "text.mail" file-types = ["eml"] +language-servers = ["harper-ls"] injection-regex = "mail|eml|email" [[grammar]] @@ -1731,7 +1732,7 @@ scope = "source.md" injection-regex = "md|markdown" file-types = ["md", "livemd", "markdown", "mdx", "mkd", "mkdn", "mdwn", "mdown", "markdn", "mdtxt", "mdtext", "workbook", { glob = "PULLREQ_EDITMSG" }] roots = [".marksman.toml"] -language-servers = [ "marksman", "markdown-oxide" ] +language-servers = [ "harper-ls", "marksman", "markdown-oxide" ] indent = { tab-width = 2, unit = " " } block-comment-tokens = { start = "" } @@ -3432,7 +3433,7 @@ injection-regex = "typ(st)?" file-types = ["typst", "typ"] comment-token = "//" block-comment-tokens = { start = "/*", end = "*/" } -language-servers = ["tinymist"] +language-servers = [ "harper-ls", "tinymist" ] indent = { tab-width = 2, unit = " " } [language.auto-pairs]