mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 12:48:01 +00:00
[neovim] Use gofumpt for formatting in go plugin
This commit is contained in:
parent
4356b20801
commit
3d21628328
@ -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>")
|
||||||
|
Loading…
Reference in New Issue
Block a user