Disable super-save on go-mode

Fixes https://github.com/bbatsov/prelude/issues/1372
This commit is contained in:
Liam 2022-06-12 16:31:44 -04:00 committed by Bozhidar Batsov
parent 5c2641ee13
commit 658dc84ea3

View file

@ -45,6 +45,12 @@
(define-key 'help-command (kbd "G") 'godoc)
;; Fix: super-save will cause go files to be saved when lsp-mode does
;; certain things, triggering lsp-format-buffer. This causes, inter alia,
;; commas to disappear when typing go function invocations
(add-to-list 'super-save-predicates
(lambda () (not (eq major-mode 'go-mode))))
(with-eval-after-load 'go-mode
(defun prelude-go-mode-defaults ()
;; Add to default go-mode key bindings