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 valign = center
} }
label { #label {
monitor = # monitor =
text = Hi, $USER # text = Hi, $USER
color = rgba(200, 200, 200, 1.0) # color = rgba(200, 200, 200, 1.0)
font_size = 25 # font_size = 25
font_family = Noto Sans # font_family = Noto Sans
position = 0, 80 # position = 0, 80
halign = center # halign = center
valign = center # valign = center
} #}
label { label {
monitor = monitor =

View File

@ -5,7 +5,7 @@
local M = {} local M = {}
M.ui = { M.ui = {
theme = "onedark", theme = "catppuccin",
-- hl_override = { -- hl_override = {
-- Comment = { italic = true }, -- 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 { return {
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",