diff --git a/lua/lsp_settings.lua b/lua/lsp_settings.lua index bbbaf28..5880314 100644 --- a/lua/lsp_settings.lua +++ b/lua/lsp_settings.lua @@ -60,5 +60,15 @@ require('mason-lspconfig').setup_handlers { }, } } + require("lspconfig")['gopls'].setup { + on_attach = on_attach, + flags = lsp_flags, + capabilities = capabilities, + settings = { + gopls = { + gofumpt = true + } + } + } end } diff --git a/lua/plugins.lua b/lua/plugins.lua index b673805..a602e0f 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -80,7 +80,7 @@ return { 'windwp/nvim-autopairs', config = function() require('nvim-autopairs').setup {} - end + end, }, -- https://github.com/lewis6991/gitsigns.nvim