;;; lang/go.el -*- lexical-binding: t; -*- (when (featurep! :tools lsp +eglot) (after! eglot (add-to-list 'eglot-workspace-configuration `((:gopls . ((staticcheck . t)))))) (setq-hook! 'go-mode-hook +format-with :none) (add-hook! 'go-mode-hook (add-hook 'before-save-hook #'eglot-format-buffer -30 t)))