Open vipexv opened 2 weeks ago
Managed to fix this by adding this to my LSP Config:
svelte = function()
require("lspconfig").svelte.setup({
capabilities = lsp_capabilities,
root_dir = function()
return vim.fn.getcwd()
end,
})
end,
I'm pretty sure this only works on Neovim 11 Development/Nightly build, because it seems like they've fixed allot of weird issues with square brackets in this version.
Thanks for the followup. But it's not clear whether you are saying any action is needed here. Are you suggesting a change to the svelte config?
If this is fixed in Nvim 0.11 then there is nothing left to be done.
Description
Describe the bug
So i'm using Neovim development/nightly build due to the fact that it allows me to use Netrw to access directories that have brackets around them, so everything works fine, in React/Lua and every other language server, but in svelte it just throws an error saying not found, more info will be found below.
My Nvim Config can also be found here
Reproduction
Try to access a directory that's wrapped with square brackets, and the Lsp doesn't start up.
Expected behaviour
The LSP is expected to start and work normally.
System Info
Which package is the issue about?
svelte-language-server installed using Mason.
LspInfo:
==============================================================================