auto fmt for GO

This commit is contained in:
yyasha 2024-04-01 16:13:40 +03:00
parent 5da04b72c4
commit 88982b91e4
3 changed files with 22 additions and 11 deletions

View File

@ -53,17 +53,17 @@ input-field {
valign = center
}
label {
monitor =
text = Hi, $USER
color = rgba(200, 200, 200, 1.0)
font_size = 25
font_family = Noto Sans
#label {
# monitor =
# text = Hi, $USER
# color = rgba(200, 200, 200, 1.0)
# font_size = 25
# font_family = Noto Sans
position = 0, 80
halign = center
valign = center
}
# position = 0, 80
# halign = center
# valign = center
#}
label {
monitor =

View File

@ -5,7 +5,7 @@
local M = {}
M.ui = {
theme = "onedark",
theme = "catppuccin",
-- hl_override = {
-- Comment = { italic = true },

View File

@ -1,3 +1,14 @@
-- Run gofmt + goimports on save
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,
})
return {
{
"stevearc/conform.nvim",