summaryrefslogtreecommitdiff
path: root/lua/lang/svelte.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lang/svelte.lua')
-rw-r--r--lua/lang/svelte.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/lua/lang/svelte.lua b/lua/lang/svelte.lua
index 220c2c18..ad6dd094 100644
--- a/lua/lang/svelte.lua
+++ b/lua/lang/svelte.lua
@@ -1,7 +1,11 @@
local M = {}
M.config = function()
- O.lang.svelte = {}
+ O.lang.svelte = {
+ lsp = {
+ path = DATA_PATH .. "/lspinstall/svelte/node_modules/.bin/svelteserver",
+ },
+ }
end
M.format = function()
@@ -20,7 +24,7 @@ M.lsp = function()
end
require("lspconfig").svelte.setup {
- cmd = { DATA_PATH .. "/lspinstall/svelte/node_modules/.bin/svelteserver", "--stdio" },
+ cmd = { O.lang.svelte.lsp.path, "--stdio" },
filetypes = { "svelte" },
root_dir = require("lspconfig.util").root_pattern("package.json", ".git"),
on_attach = require("lsp").common_on_attach,