From 0799a1f076adf35ad4486345e2b5445575fefab8 Mon Sep 17 00:00:00 2001 From: L Lllvvuu Date: Sat, 29 Jul 2023 02:44:21 -0700 Subject: [PATCH] feat(marksman): enable for `markdown.mdx` `marksman` works for MDX files. We don't want to `set ft=markdown`, since there exist tools that don't work for MDX, so we want to keep those separate --- lua/lspconfig/server_configurations/marksman.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lspconfig/server_configurations/marksman.lua b/lua/lspconfig/server_configurations/marksman.lua index 113cb1e39f..2dd01a28e9 100644 --- a/lua/lspconfig/server_configurations/marksman.lua +++ b/lua/lspconfig/server_configurations/marksman.lua @@ -6,7 +6,7 @@ local cmd = { bin_name, 'server' } return { default_config = { cmd = cmd, - filetypes = { 'markdown' }, + filetypes = { 'markdown', 'markdown.mdx' }, root_dir = function(fname) local root_files = { '.marksman.toml' } return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname)