branch: elpa/smartparens
commit 5c4861e4cf7706d647adda761bda228cad7929ae
Author: Gerard Vermeulen <gerard.vermeu...@posteo.net>
Commit: Gerard Vermeulen <gerard.vermeu...@posteo.net>

    Add go-ts-mode to smartparens-go.el
---
 smartparens-go.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/smartparens-go.el b/smartparens-go.el
index 7479a4cc2a..48bf7c026c 100644
--- a/smartparens-go.el
+++ b/smartparens-go.el
@@ -45,8 +45,9 @@
 (require 'smartparens)
 
 (declare-function go-mode "go-mode")
+(declare-function go-ts-mode "go-ts-mode")
 
-(sp-with-modes 'go-mode
+(sp-with-modes '(go-mode go-ts-mode)
   (sp-local-pair "{" nil :post-handlers '(("||\n[i]" "RET")))
   (sp-local-pair "/*" "*/" :post-handlers '(("| " "SPC")
                                             ("* ||\n[i]" "RET"))))
@@ -54,6 +55,7 @@
 ;; Go has no sexp suffices.  This fixes slurping
 ;; (|foo).bar -> (foo.bar)
 (add-to-list 'sp-sexp-suffix (list #'go-mode 'regexp ""))
+(add-to-list 'sp-sexp-suffix (list #'go-ts-mode 'regexp ""))
 
 (provide 'smartparens-go)
 

Reply via email to