Skip to content

Commit

Permalink
update Vue LSP path
Browse files Browse the repository at this point in the history
  • Loading branch information
Klrfl committed Nov 3, 2024
1 parent 448a435 commit d16edb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ After using my config for a while, I decided to change my plugin manager from Pa

## Special note: Vue LS

When upgrading my lS for Vue to 2.0.7 I found myself scouring over github for solutions.
When upgrading my LS for Vue to 2.0.7 I found myself scouring over github for solutions.
I followed these threads:

- [vuejs/language-tools/issues/3925](https://github.com/vuejs/language-tools/issues/3925)
Expand Down
5 changes: 3 additions & 2 deletions lua/plugins/lsp_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ return {
-- Setup language servers.
local lspconfig = require("lspconfig")
local capabilities = require("cmp_nvim_lsp").default_capabilities()
-- require("lspconfig.ui.windows").default_options.border = "rounded"

-- special server with special config
lspconfig.lua_ls.setup({
Expand Down Expand Up @@ -114,9 +113,11 @@ return {
),
})

-- https://github.com/vuejs/language-tools/
local mason_registry = require("mason-registry")
local vue_language_server_path = mason_registry.get_package("vue-language-server"):get_install_path()
.. "/node_modules/@vue/language-server/node_modules/@vue/typescript-plugin"
-- .. "/node_modules/@vue/language-server/node_modules/@vue/typescript-plugin"
.. "/node_modules/@vue/language-server"

-- local vue_language_server_path =
-- "/home/efrayanglain/.nvm/versions/node/v20.10.0/lib/node_modules/@vue/typescript-plugin"
Expand Down

0 comments on commit d16edb5

Please sign in to comment.