aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikey <michael.williams@enspiral.com>2023-08-26 12:20:05 +1200
committerGitHub <noreply@github.com>2023-08-26 08:20:05 +0800
commit9dc42e1ae53f7016f54f556e7183cb826073ebd8 (patch)
treec382f592f10a5c3dd95a3f5bfcb583cffda9613b
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-9dc42e1ae53f7016f54f556e7183cb826073ebd8.tar
nvim-lspconfig-9dc42e1ae53f7016f54f556e7183cb826073ebd8.tar.gz
nvim-lspconfig-9dc42e1ae53f7016f54f556e7183cb826073ebd8.tar.bz2
nvim-lspconfig-9dc42e1ae53f7016f54f556e7183cb826073ebd8.tar.lz
nvim-lspconfig-9dc42e1ae53f7016f54f556e7183cb826073ebd8.tar.xz
nvim-lspconfig-9dc42e1ae53f7016f54f556e7183cb826073ebd8.tar.zst
nvim-lspconfig-9dc42e1ae53f7016f54f556e7183cb826073ebd8.zip
feat: add mdx-analyzer support (#2784)
-rw-r--r--lua/lspconfig/server_configurations/mdx_analyzer.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/mdx_analyzer.lua b/lua/lspconfig/server_configurations/mdx_analyzer.lua
new file mode 100644
index 00000000..d41ba84e
--- /dev/null
+++ b/lua/lspconfig/server_configurations/mdx_analyzer.lua
@@ -0,0 +1,19 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'mdx-language-server', '--stdio' },
+ filetypes = { 'markdown.mdx' },
+ root_dir = util.root_pattern 'package.json',
+ single_file_support = true,
+ settings = {},
+ },
+ commands = {},
+ docs = {
+ description = [[
+https://github.com/mdx-js/mdx-analyzer
+
+`mdx-analyzer`, a language server for MDX
+]],
+ },
+}