Skip to content

Commit 32e28c0

Browse files
EasternLismile13241324
authored andcommitted
[go] just call generated hooks when setup company
since the func is in `go-mode-local-vars-hook`. Or rather, this restores the PROPS removed in #13455. Fix yasnippet unavailable in first go-mode buffer.
1 parent ee41fbc commit 32e28c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

layers/+lang/go/funcs.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
:call-hooks t))
3838
('lsp (spacemacs|add-company-backends
3939
:backends company-capf
40-
:modes go-mode))))
40+
:modes go-mode
41+
:append-hooks nil
42+
:call-hooks t))))
4143

4244
(defun spacemacs//go-setup-eldoc ()
4345
"Conditionally setup go eldoc based on backend"

0 commit comments

Comments
 (0)