diff options
Diffstat (limited to '.emacs.local.d/modes')
-rw-r--r-- | .emacs.local.d/modes/go-lang.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.emacs.local.d/modes/go-lang.el b/.emacs.local.d/modes/go-lang.el index ad0b307..0554f2b 100644 --- a/.emacs.local.d/modes/go-lang.el +++ b/.emacs.local.d/modes/go-lang.el @@ -7,12 +7,16 @@ (progn (bind-key [remap find-tag] #'godef-jump)) :config + (add-hook 'go-mode-hook #'lsp-go-install-save-hooks) + (add-hook 'go-mode-hook #'lsp-deferred) + (add-hook 'go-mode-hook #'yas-minor-mode) (add-hook 'go-mode-hook 'electric-pair-mode) - (add-hook 'go-mode-hook 'my-go-mode-hook)) + (add-hook 'go-mode-hook 'my-go-mode-hook) + (add-hook 'before-save-hook 'gofmt-before-save) +) (use-package go-eldoc :ensure t - :defer :init (add-hook 'go-mode-hook 'go-eldoc-setup)) |