diff options
| -rw-r--r-- | lua/lang/elm.lua | 1 | ||||
| -rw-r--r-- | lua/lang/erlang.lua | 4 | ||||
| -rw-r--r-- | lua/lang/euphoria3.lua | 1 | ||||
| -rw-r--r-- | lua/lang/sh.lua | 1 | 
4 files changed, 6 insertions, 1 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", diff --git a/lua/lang/erlang.lua b/lua/lang/erlang.lua index ecdafc77..c98b65cf 100644 --- a/lua/lang/erlang.lua +++ b/lua/lang/erlang.lua @@ -19,7 +19,9 @@ M.lsp = function()      return    end -  require("lspconfig").erlangls.setup {} +  require("lspconfig").erlangls.setup { +    on_attach = require("lsp").common_on_attach, +  }  end  M.dap = function() diff --git a/lua/lang/euphoria3.lua b/lua/lang/euphoria3.lua index 766faa95..f8e32c61 100644 --- a/lua/lang/euphoria3.lua +++ b/lua/lang/euphoria3.lua @@ -23,6 +23,7 @@ M.lsp = function()    -- TODO: Remove this at some point    require("lspconfig").elixirls.setup {      cmd = { DATA_PATH .. "/lspinstall/elixir/elixir-ls/language_server.sh" }, +    on_attach = require("lsp").common_on_attach,    }  end diff --git a/lua/lang/sh.lua b/lua/lang/sh.lua index 28c857d5..f2a7fe78 100644 --- a/lua/lang/sh.lua +++ b/lua/lang/sh.lua @@ -55,6 +55,7 @@ M.lint = function()      require("lspconfig").efm.setup {        -- init_options = {initializationOptions},        cmd = { DATA_PATH .. "/lspinstall/efm/efm-langserver" }, +      on_attach = require("lsp").common_on_attach,        init_options = { documentFormatting = true, codeAction = false },        root_dir = require("lspconfig").util.root_pattern ".git/",        filetypes = { "sh" }, | 
