summaryrefslogtreecommitdiff
path: root/lua/lang/elm.lua
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-07-15 13:49:15 -0400
committerchristianchiarulli <[email protected]>2021-07-15 13:49:15 -0400
commit359c06d002304cb1a3e56936a2f69c3ec2c4de14 (patch)
treea0c247192ee1d6291350906e489f54c8e5a5a5e8 /lua/lang/elm.lua
parent776c3ca9353ede04917e8399b19e8e496ef6a30a (diff)
add on attach to more langs
Diffstat (limited to 'lua/lang/elm.lua')
-rw-r--r--lua/lang/elm.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/lang/elm.lua b/lua/lang/elm.lua
index 159d891f..54526e0c 100644
--- a/lua/lang/elm.lua
+++ b/lua/lang/elm.lua
@@ -21,6 +21,7 @@ M.lsp = function()
require("lspconfig").elmls.setup {
cmd = { DATA_PATH .. "/lspinstall/elm/node_modules/.bin/elm-language-server" },
+ on_attach = require("lsp").common_on_attach,
init_options = {
elmAnalyseTrigger = "change",
elmFormatPath = DATA_PATH .. "/lspinstall/elm/node_modules/.bin/elm-format",