I'm just trying to set up Svelte in Neovim but the server does not work inside the script tag neither for JavaScript not TypeScript. I don't get autocompletion or help on hover, for example. Also, when choosing lang=ts I get the error svelte: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer. initialize({ 'lib/mappings. wasm':.) before using SourceMapConsumer
Outside the script tag, the server seems to work without issues for both the HTML and style portions.
I have tried the same application in SublimeText and VSCode, and the server works without issues even inside the script tag. I also tried configuring the server without nvim-lsp-installer following Nvim's lspconfig documentation but I get exactly the same issue.
Below is a short video that highlights the problem
Problem description
Hi,
I'm just trying to set up Svelte in Neovim but the server does not work inside the
script
tag neither for JavaScript not TypeScript. I don't get autocompletion or help on hover, for example. Also, when choosinglang=ts
I get the errorsvelte: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer. initialize({ 'lib/mappings. wasm':.) before using SourceMapConsumer
Outside the
script
tag, the server seems to work without issues for both the HTML and style portions.I have tried the same application in SublimeText and VSCode, and the server works without issues even inside the
script
tag. I also tried configuring the server withoutnvim-lsp-installer
following Nvim'slspconfig
documentation but I get exactly the same issue.Below is a short video that highlights the problem
https://user-images.githubusercontent.com/20104703/168334984-2613f417-5270-4b29-aa77-2101c5e2abc5.mp4
Why do you think this is an issue with nvim-lsp-installer?
I don't think is an issue with
nvim-lsp-installer
but I will appreciate any help in pointing me in the right direction on how to solve it.Neovim version (>= 0.6)
NVIM v0.8.0-dev+181-ga2d4b862f Build type: Release LuaJIT 2.1.0-beta3
Operating system/version
(MacOS 12.3.1) Darwin ... Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64
I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig
Affected language servers
Svelte
Steps to reproduce
This is happening in any
.svelte
file.Actual behavior
The server does not work inside the
script
tag.Expected behavior
The server should work inside the
script
tag for completion, help on hover, etc.LspInfo