From 359c06d002304cb1a3e56936a2f69c3ec2c4de14 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Thu, 15 Jul 2021 13:49:15 -0400 Subject: add on attach to more langs --- lua/lang/sh.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua/lang/sh.lua') 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" }, -- cgit v1.2.3