1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-11-01 09:41:12 +00:00
dotfiles/.config/nvim/lua/plugins/go.lua

15 lines
429 B
Lua
Raw Normal View History

2023-04-12 18:09:30 +00:00
require("go").setup({
2022-10-01 11:46:18 +00:00
icons = { breakpoint = "", currentpos = "🏃" },
2022-10-14 18:40:51 +00:00
fillstruct = "fillstruct",
gofmt = "gofumpt",
lsp_gofumpt = true,
2023-09-22 14:14:42 +00:00
diagnostic = false,
2022-10-01 11:46:18 +00:00
})
2022-10-14 18:40:51 +00:00
2023-04-29 15:09:28 +00:00
require("guihua.maps").setup({
maps = { close_view = "<C-x>" },
})
2022-10-14 18:40:51 +00:00
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)