diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-04-22 05:44:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-22 05:44:50 -0700 |
| commit | d3458965499eec45d87685d6a423b99ac182e385 (patch) | |
| tree | e7563a6837744d02974c180588796a9d1f3f6f8d /lsp/mdx_analyzer.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.tar nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.tar.gz nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.tar.bz2 nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.tar.lz nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.tar.xz nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.tar.zst nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.zip | |
ci(lint): check `@brief` docstring placement #3762
Diffstat (limited to 'lsp/mdx_analyzer.lua')
| -rw-r--r-- | lsp/mdx_analyzer.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lsp/mdx_analyzer.lua b/lsp/mdx_analyzer.lua index 36b84239..89413fd2 100644 --- a/lsp/mdx_analyzer.lua +++ b/lsp/mdx_analyzer.lua @@ -1,13 +1,13 @@ -local function get_typescript_server_path(root_dir) - local project_root = vim.fs.dirname(vim.fs.find('node_modules', { path = root_dir, upward = true })[1]) - return project_root and vim.fs.joinpath(project_root, 'node_modules', 'typescript', 'lib') or '' -end - ---@brief ---https://github.com/mdx-js/mdx-analyzer --- ---`mdx-analyzer`, a language server for MDX +local function get_typescript_server_path(root_dir) + local project_root = vim.fs.dirname(vim.fs.find('node_modules', { path = root_dir, upward = true })[1]) + return project_root and vim.fs.joinpath(project_root, 'node_modules', 'typescript', 'lib') or '' +end + return { cmd = { 'mdx-language-server', '--stdio' }, filetypes = { 'mdx' }, |
