dotfiles/nvim/init.lua

17 lines
334 B
Lua
Raw Permalink Normal View History

require("serxoz")
2023-10-18 17:19:58 +02:00
require('serxoz.packer')
2024-03-04 16:28:56 +01:00
-- autoformat
vim.api.nvim_create_augroup("AutoFormat", {})
vim.api.nvim_create_autocmd(
"BufWritePost",
{
pattern = "*.go",
group = "AutoFormat",
callback = function()
vim.cmd("silent !go fmt %")
vim.cmd("edit")
end,
}
)