Disable super-save on go-mode
Fixes https://github.com/bbatsov/prelude/issues/1372
This commit is contained in:
parent
5c2641ee13
commit
658dc84ea3
1 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,12 @@
|
||||||
|
|
||||||
(define-key 'help-command (kbd "G") 'godoc)
|
(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
|
(with-eval-after-load 'go-mode
|
||||||
(defun prelude-go-mode-defaults ()
|
(defun prelude-go-mode-defaults ()
|
||||||
;; Add to default go-mode key bindings
|
;; Add to default go-mode key bindings
|
||||||
|
|
Loading…
Reference in a new issue