local M = {} M.setup_lsp = function(attach, capabilities) local lspconfig = require "lspconfig" -- lspserver with default config local servers = { "html", "cssls", "gopls", "jedi_language_server"} for _, lsp in ipairs(servers) do lspconfig[lsp].setup { on_attach = attach, capabilities = capabilities, } end end return M