Occasional many errors in Neovim #5586
Replies: 4 comments 4 replies
-
This general caused by vue plugin not properly loaded. Are you using mason lspconfig plugin? it automatically enable the lsps, maybe your nvimlspcofing here loaded after that. |
Beta Was this translation helpful? Give feedback.
-
I was with the same problem as you, I was trying to debug it with Somehow after many trial and error I got back to an error saying "Could not find I also have my full config repo if that helps -- Configuring Vue LSP
local vue_language_server_path = vim.fn.stdpath('data') ..
'/mason/packages/vue-language-server/node_modules/@vue/language-server'
local servers = {
-- other servers here
ts_ls = {
init_options = {
plugins = {
{
name = '@vue/typescript-plugin',
location = vue_language_server_path,
languages = { 'vue' },
configNamespace = 'typescript',
},
},
},
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
},
vue_ls = {},
}
require('mason').setup()
-- Ensure the servers above are installed
local mason_lspconfig = require 'mason-lspconfig'
mason_lspconfig.setup {
ensure_installed = vim.tbl_keys(servers or {}),
automatic_enable = true
}
for server_name, config in pairs(servers) do
vim.lsp.config(server_name, config)
end
|
Beta Was this translation helpful? Give feedback.
-
I had the same problem with the same error message: I was able to fix this by additionally setting {
name = "@vue/typescript-plugin",
location = vue_language_server_path,
languages = { "vue" },
configNamespace = "typescript",
enableForWorkspaceTypeScriptVersions = true,
} The vtsls readme recommends this for plugins that are installed outside the project: You can find more information about this setting here: microsoft/vscode#65031 It seems that the version bump of typescript caused the problem? 3d68967 |
Beta Was this translation helpful? Give feedback.
-
This might be a simpler problem than expected. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use Neovim as my editor, and today I configured vue_ls based on the wiki of this repository. My environment is as follows:
macOS 15.5
Neovim 0.11.3
nvim-lspconfig is the latest version
vue_ls 3.0.5
mason v2
treesitter main branch
The relevant configuration is as follows:
LSP log below:
Has anyone encountered a similar situation, and how should I resolve it?
Beta Was this translation helpful? Give feedback.
All reactions