Skip to content

Commit

Permalink
feat(lsp): use mason path for tsserver
Browse files Browse the repository at this point in the history
  • Loading branch information
ecosse3 committed Sep 29, 2023
1 parent 4d915e5 commit 4ea1701
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/plugins/typescript-tools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ local baseDefinitionHandler = vim.lsp.handlers["textDocument/definition"]
local filter = require("lsp.utils.filter").filter
local filterReactDTS = require("lsp.utils.filterReactDTS").filterReactDTS

local mason_registry = require('mason-registry')
local tsserver_path = mason_registry.get_package('typescript-language-server'):get_install_path()

local handlers = {
["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
silent = true,
Expand Down

0 comments on commit 4ea1701

Please sign in to comment.