mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-11-10 09:41:11 +00:00
15 lines
429 B
Lua
15 lines
429 B
Lua
require("go").setup({
|
|
icons = { breakpoint = "", currentpos = "🏃" },
|
|
fillstruct = "fillstruct",
|
|
gofmt = "gofumpt",
|
|
lsp_gofumpt = true,
|
|
diagnostic = false,
|
|
})
|
|
|
|
require("guihua.maps").setup({
|
|
maps = { close_view = "<C-x>" },
|
|
})
|
|
|
|
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)
|