nvim/after/plugin/go.lua
2024-10-19 10:57:01 +03:00

11 lines
255 B
Lua

require('go').setup()
local format_sync_grp = vim.api.nvim_create_augroup("goimports", {})
vim.api.nvim_create_autocmd("BufWritePre", {
pattern = "*.go",
callback = function()
require('go.format').goimports()
end,
group = format_sync_grp,
})