Skip to content

Commit

Permalink
fix(volar): correct path to locate typescript/lib in Neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
krovuxdev committed Jan 24, 2025
1 parent cf7b06a commit c4c595e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspconfig/configs/volar.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

-- https://github.com/vuejs/language-tools/blob/master/packages/language-server/lib/types.ts
Expand Down

0 comments on commit c4c595e

Please sign in to comment.