dotfiles/nvim/after/plugin/go.lua

6 lines
256 B
Lua
Raw Normal View History

2022-07-28 14:35:01 +02:00
require('go').setup()
-- Run gofmt + goimport on save
vim.api.nvim_exec([[ autocmd BufWritePre *.go :silent! lua require('go.format').gofmt() ]], false)
vim.api.nvim_exec([[ autocmd BufWritePre *.go :silent! lua require('go.format').goimport() ]], false)