Skip to content

Commit

Permalink
feat(marksman): enable for markdown.mdx
Browse files Browse the repository at this point in the history
`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
  • Loading branch information
llllvvuu authored and dundargoc committed Oct 1, 2023
1 parent 8c0b852 commit 0799a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/marksman.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0799a1f

Please sign in to comment.