mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-01 18:39:27 +00:00
[neovim] Use gofumpt for formatting in go plugin
This commit is contained in:
@ -6,6 +6,8 @@ end
|
|||||||
go.setup({
|
go.setup({
|
||||||
icons = { breakpoint = "", currentpos = "🏃" },
|
icons = { breakpoint = "", currentpos = "🏃" },
|
||||||
fillstruct = "fillstruct",
|
fillstruct = "fillstruct",
|
||||||
|
gofmt = "gofumpt",
|
||||||
|
lsp_gofumpt = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.cmd("autocmd FileType go nmap <Leader>gf :lua require('go.format').goimport()<CR>")
|
vim.cmd("autocmd FileType go nmap <Leader>gf :lua require('go.format').goimport()<CR>")
|
||||||
|
Reference in New Issue
Block a user