mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2025-12-25 07:21:00 +01:00
23 lines
603 B
Lua
23 lines
603 B
Lua
---@brief
|
|
--- https://github.com/mdx-js/mdx-analyzer
|
|
---
|
|
--- `mdx-analyzer`, a language server for MDX
|
|
|
|
local util = require 'lspconfig.util'
|
|
|
|
---@type vim.lsp.Config
|
|
return {
|
|
cmd = { 'mdx-language-server', '--stdio' },
|
|
filetypes = { 'mdx' },
|
|
root_markers = { 'package.json' },
|
|
settings = {},
|
|
init_options = {
|
|
typescript = {},
|
|
},
|
|
before_init = function(_, config)
|
|
if config.init_options and config.init_options.typescript and not config.init_options.typescript.tsdk then
|
|
config.init_options.typescript.tsdk = util.get_typescript_server_path(config.root_dir)
|
|
end
|
|
end,
|
|
}
|