Dezly MacauleyD
Denoβ€’2w ago
Dezly Macauley

Is there a way to use `deno lsp` in a SvelteKit or (Svelte + Vite) project?

For context I'm using Neovim.
So I'll have this:
vim.lsp.enable("denols")
Then then I'll have the nvim-lspconfig load a default config for the deno lsp. Nothing fancy.
return { "neovim/nvim-lspconfig" }
---
Project-A: Creating a basic TypeScript project with just a main.ts and
deno.json
file
The deno lsp is working. no issues when I open up a .ts file

If I run :LspInfo
I get this:
vim.lsp: Active Clients ~ - denols (id: 1) - Version: 2.5.6 (release, x86_64-unknown-linux-gnu) - Root directory: ~/deno-tests/project-a - Command: { "deno", "lsp" } - Settings: { deno = { enable = true, suggest = { imports = { hosts = { ["https://deno.land"] = true } } } } } - Attached buffers: 16
---
Test 2: Creating a new project using the Fresh framework. No issues. Deno lsp is working when I open up a .ts file
---
Test 3: Creating a Svelte project with vite
Now there is an issue. When I open a .ts file, the deno lsp does not attach to the file.
---
Test 4: Creating a SvelteKit project
Same issue. when I open a .ts file, the deno lsp does not attach to the file.
Is this the normal behavior of Deno or am I doing something wrong? To be clear I'm getting language support from the svelte-language-server when opening up .svelte files and using typescript in those files, and all my othe lsps are working.
But Deno seems to just be deactivated so I get no support for regular typescript files.
Was this page helpful?