Skip to content

Commit

Permalink
fix: project root variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MuntasirSZN2 authored Dec 25, 2024
1 parent b6459ff commit f59ccc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspconfig/configs/mdx_analyzer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local util = require 'lspconfig.util'

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 (project_root .. '/typescript/lib') or ''
return project_root and (project_root .. '/node_modules/typescript/lib') or ''
end

return {
Expand Down

0 comments on commit f59ccc5

Please sign in to comment.