lspconfig: update for Mason 2.0
This commit is contained in:
parent
26c7c6038d
commit
e8db509c87
2 changed files with 2 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
"mason-org/mason.nvim",
|
||||
|
||||
config = function()
|
||||
require("mason").setup()
|
||||
|
|
|
@ -3,8 +3,6 @@ return {
|
|||
|
||||
config = function()
|
||||
local lspconfig = require("lspconfig")
|
||||
local mason_registry = require("mason-registry")
|
||||
local volar_path = mason_registry.get_package("vue-language-server"):get_install_path() .. "/node_modules/@vue/language-server"
|
||||
|
||||
lspconfig.clangd.setup({
|
||||
cmd = { "clangd", "-header-insertion=never" },
|
||||
|
@ -21,7 +19,7 @@ return {
|
|||
plugins = {
|
||||
{
|
||||
name = "@vue/typescript-plugin",
|
||||
location = volar_path,
|
||||
location = vim.fn.expand("$MASON") .. "/packages/vue-language-server/node_modules/@vue/language-server",
|
||||
languages = { "vue" },
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue