From 3d2162832841a91bc8953ca72117e799270ef49a Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Mon, 13 Feb 2023 19:27:17 +0100 Subject: [PATCH] [neovim] Use gofumpt for formatting in go plugin --- .config/nvim/lua/plugins/go.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/nvim/lua/plugins/go.lua b/.config/nvim/lua/plugins/go.lua index eba853d..6fc9958 100644 --- a/.config/nvim/lua/plugins/go.lua +++ b/.config/nvim/lua/plugins/go.lua @@ -6,6 +6,8 @@ end go.setup({ icons = { breakpoint = "", currentpos = "🏃" }, fillstruct = "fillstruct", + gofmt = "gofumpt", + lsp_gofumpt = true, }) vim.cmd("autocmd FileType go nmap gf :lua require('go.format').goimport()")