diff --git a/lazy-lock.json b/lazy-lock.json index 09997b6..bbf1192 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -31,7 +31,7 @@ "nvim-dap-ui": { "branch": "master", "commit": "bc81f8d3440aede116f821114547a476b082b319" }, "nvim-lspconfig": { "branch": "master", "commit": "66bc018936c6ff76beb75f89d986af6442db4001" }, "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" }, - "nvim-treesitter": { "branch": "master", "commit": "4e701776f8824fc188a6254f57d080971ce28c92" }, + "nvim-treesitter": { "branch": "master", "commit": "53a6b3993f5803378d4d031bf114c0b125a52ba8" }, "nvim-treesitter-context": { "branch": "master", "commit": "9a49f43a2ec9bf77aecfb0fcbc43af43338375c0" }, "nvim-web-devicons": { "branch": "master", "commit": "402377242b04be3f4f0f3720bd952df86e946c30" }, "omnisharp-extended-lsp.nvim": { "branch": "main", "commit": "ec1a2431f8872f650a85ed71c24f0715df2e49c2" }, diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 00774e8..8bda1a1 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -47,7 +47,7 @@ return { OrganizeImports = true, }, RoslynExtensionsOptions = { - DocumentAnalysisTimeoutMs = 30000, + DocumentAnalysisTimeoutMs = 30000, EnableAnalyzersSupport = true, EnableImportCompletion = true, }, @@ -61,8 +61,22 @@ return { capabilities = capabilities, }) + local mason_registry = require("mason-registry") + local vue_language_server = mason_registry.get_package("vue-language-server"):get_install_path() + .. "/node_modules/@vue/language-server" + lspconfig.ts_ls.setup({ capabilities = capabilities, + init_options = { + plugins = { + { + name = "@vue/typescript-plugin", + location = vue_language_server, + languages = { "vue" }, + } + } + }, + filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" } }) lspconfig.html.setup({