summaryrefslogtreecommitdiff
path: root/lua/lsp/elm-ls.lua
diff options
context:
space:
mode:
authorAndrés Otárola <[email protected]>2021-05-11 14:34:36 -0500
committerGitHub <[email protected]>2021-05-11 15:34:36 -0400
commitda0d2dbabe53a96a35185f160f5a90b230b077be (patch)
treec226c65fc6e7bab4fd0d9da5491397b52bfeae07 /lua/lsp/elm-ls.lua
parentcce4f50e76517d972b47caa041756079547285e6 (diff)
Add Elm support (#386)
* Add Elm support See: https://github.com/kabouzeid/nvim-lspinstall/pull/51 * remove comment
Diffstat (limited to 'lua/lsp/elm-ls.lua')
-rw-r--r--lua/lsp/elm-ls.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/lsp/elm-ls.lua b/lua/lsp/elm-ls.lua
new file mode 100644
index 00000000..3572a607
--- /dev/null
+++ b/lua/lsp/elm-ls.lua
@@ -0,0 +1,9 @@
+require'lspconfig'.elmls.setup {
+ cmd = {DATA_PATH .. "/lspinstall/elm/node_modules/.bin/elm-language-server"},
+ init_options= {
+ elmAnalyseTrigger = "change",
+ elmFormatPath = DATA_PATH .. "/lspinstall/elm/node_modules/.bin/elm-format",
+ elmPath = DATA_PATH .. "/lspinstall/elm/node_modules/.bin/elm",
+ elmTestPath = DATA_PATH .. "/lspinstall/elm/node_modules/.bin/elm-test"
+ }
+}