[neovim] Use gofumpt for formatting in go plugin

This commit is contained in:
Daniel Carrillo 2023-02-13 19:27:17 +01:00
parent 4356b20801
commit 3d21628328
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ end
go.setup({
icons = { breakpoint = "", currentpos = "🏃" },
fillstruct = "fillstruct",
gofmt = "gofumpt",
lsp_gofumpt = true,
})
vim.cmd("autocmd FileType go nmap <Leader>gf :lua require('go.format').goimport()<CR>")