We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8de43d7 + 5c4861e commit 2ea2dfaCopy full SHA for 2ea2dfa
1 file changed
smartparens-go.el
@@ -45,15 +45,17 @@
45
(require 'smartparens)
46
47
(declare-function go-mode "go-mode")
48
+(declare-function go-ts-mode "go-ts-mode")
49
-(sp-with-modes 'go-mode
50
+(sp-with-modes '(go-mode go-ts-mode)
51
(sp-local-pair "{" nil :post-handlers '(("||\n[i]" "RET")))
52
(sp-local-pair "/*" "*/" :post-handlers '(("| " "SPC")
53
("* ||\n[i]" "RET"))))
54
55
;; Go has no sexp suffices. This fixes slurping
56
;; (|foo).bar -> (foo.bar)
57
(add-to-list 'sp-sexp-suffix (list #'go-mode 'regexp ""))
58
+(add-to-list 'sp-sexp-suffix (list #'go-ts-mode 'regexp ""))
59
60
(provide 'smartparens-go)
61
0 commit comments