mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/go: don't popup gofmt errors (use flycheck instead)
This commit is contained in:
@ -6,7 +6,8 @@
|
||||
:config
|
||||
(add-hook 'go-mode-hook #'flycheck-mode)
|
||||
|
||||
(setq gofmt-command "goimports")
|
||||
(setq gofmt-command "goimports"
|
||||
gofmt-show-errors nil)
|
||||
(if (not (executable-find "goimports"))
|
||||
(warn "go-mode: couldn't find goimports; no code formatting/fixed imports on save")
|
||||
(add-hook! go-mode (add-hook 'before-save-hook #'gofmt-before-save nil t)))
|
||||
|
Reference in New Issue
Block a user