require("lsp-format").setup {} local on_attach = function(client) require "lsp-format".on_attach(client) end require "lspconfig".gopls.setup { on_attach = on_attach }