summaryrefslogtreecommitdiff
path: root/settings/setup-flycheck.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--settings/setup-flycheck.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/settings/setup-flycheck.el b/settings/setup-flycheck.el
index 63fca3f..764fe36 100644
--- a/settings/setup-flycheck.el
+++ b/settings/setup-flycheck.el
@@ -19,6 +19,11 @@
'(custom-set-variables
'(flycheck-display-errors-function #'flycheck-pos-tip-error-messages)))
+;; hack to get around go tool vet issue
+(let ((govet (flycheck-checker-get 'go-vet 'command)))
+ (when (equal (cadr govet) "tool")
+ (setf (cdr govet) (cddr govet))))
+
(global-set-key (kbd "<f2>") 'flyspell-auto-correct-previous-word)
(setq flycheck-clangcheck-analyze t)