From 08937fc00e0f133f4393cae6b16ea65bcdd38487 Mon Sep 17 00:00:00 2001 From: Artem Pyanykh Date: Sun, 21 Aug 2022 19:41:36 +0100 Subject: [PATCH] Add Markdown LSP via Marksman Marksman is an LSP server for Markdown: https://github.com/artempyanykh/marksman It supports a bunch of LSP features: symbols, references, rename, diag, etc. and already has integrations with emacs, neovim, and vscode. --- book/src/generated/lang-support.md | 2 +- languages.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 78362384897c..faa2667e8481 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -67,7 +67,7 @@ | llvm-mir-yaml | ✓ | | ✓ | | | lua | ✓ | | ✓ | `lua-language-server` | | make | ✓ | | | | -| markdown | ✓ | | | | +| markdown | ✓ | | | `marksman` | | markdown.inline | ✓ | | | | | meson | ✓ | | ✓ | | | mint | | | | `mint` | diff --git a/languages.toml b/languages.toml index 0b46cc492f3f..1dda58ae0a24 100644 --- a/languages.toml +++ b/languages.toml @@ -905,7 +905,8 @@ name = "markdown" scope = "source.md" injection-regex = "md|markdown" file-types = ["md", "markdown"] -roots = [] +roots = [".marksman.toml"] +language-server = { command = "marksman", args=["server"] } indent = { tab-width = 2, unit = " " } [[grammar]]