mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-09-06 21:57:32 +00:00
10 lines
339 B
Lua
10 lines
339 B
Lua
require("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>")
|
|
vim.api.nvim_exec([[ autocmd BufWritePre *.go :silent! lua require('go.format').goimport() ]], false)
|