mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-31 15:19:26 +02:00
Add svelte lsp config for LspInstall (#202)
This commit is contained in:
parent
7fa7e3c275
commit
029c7e5219
2 changed files with 5 additions and 0 deletions
1
init.lua
1
init.lua
|
@ -65,6 +65,7 @@ require('lsp.html-ls')
|
||||||
require('lsp.efm-general-ls')
|
require('lsp.efm-general-ls')
|
||||||
require('lsp.virtual_text')
|
require('lsp.virtual_text')
|
||||||
require('lsp.latex-ls')
|
require('lsp.latex-ls')
|
||||||
|
require('lsp.svelte-ls')
|
||||||
|
|
||||||
-- vim.lsp.callbacks["textDocument/publishDiagnostics"] = function() end
|
-- vim.lsp.callbacks["textDocument/publishDiagnostics"] = function() end
|
||||||
-- vim.lsp.handlers["textDocument/publishDiagnostics"] = nil
|
-- vim.lsp.handlers["textDocument/publishDiagnostics"] = nil
|
||||||
|
|
4
lua/lsp/svelte-ls.lua
Normal file
4
lua/lsp/svelte-ls.lua
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
require'lspconfig'.svelte.setup {
|
||||||
|
cmd = {DATA_PATH .. "/lspinstall/svelte/node_modules/.bin/svelteserver", "--stdio"},
|
||||||
|
on_attach = require'lsp'.common_on_attach
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue