Commit 04ddb53dd40b

Vincent Demeester <vincent@sbr.pm>
2020-02-27 17:57:26
Disable gofmt-command as lsp-go does this ๐Ÿ
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 1c1e628
Changed files (2)
config/setup-go.el
@@ -7,7 +7,7 @@
     :config
     (setq company-go-show-annotation t)
     (push 'company-go company-backends))
-  (setq gofmt-command "goimports")
+  ;;(setq gofmt-command "goimports")
   (if (not (executable-find "goimports"))
       (warn "go-mode: couldn't find goimports; no code formatting/fixed imports on save")
     (add-hook 'before-save-hook 'gofmt-before-save))
emacs.org
@@ -2669,7 +2669,7 @@
     :config
     (setq company-go-show-annotation t)
     (push 'company-go company-backends))
-  (setq gofmt-command "goimports")
+  ;(setq gofmt-command "goimports")
   (if (not (executable-find "goimports"))
       (warn "go-mode: couldn't find goimports; no code formatting/fixed imports on save")
     (add-hook 'before-save-hook 'gofmt-before-save))