1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 06:58:01 +00:00

[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

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>")