branch: elpa/smartparens
commit d01e107cebc7b05569080a5a52b185505ed1b761
Merge: 07169605dc f4ae234fab
Author: Matus Goljer <matus.gol...@gmail.com>
Commit: GitHub <nore...@github.com>

    Merge pull request #1183 from dpassen/support-lua-ts-mode
    
    Add support for lua-ts-mode
---
 smartparens-config.el | 1 +
 smartparens-lua.el    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/smartparens-config.el b/smartparens-config.el
index d354d11255..c639e5e998 100644
--- a/smartparens-config.el
+++ b/smartparens-config.el
@@ -131,6 +131,7 @@ ID, ACTION, CONTEXT."
   (eval-after-load it                      '(require 'smartparens-html)))
 (eval-after-load 'latex                    '(require 'smartparens-latex))
 (eval-after-load 'lua-mode                 '(require 'smartparens-lua))
+(eval-after-load 'lua-ts-mode              '(require 'smartparens-lua))
 (eval-after-load 'markdown-mode            '(require 'smartparens-markdown))
 (--each '(python-mode python-ts-mode python)
   (eval-after-load it                      '(require 'smartparens-python)))
diff --git a/smartparens-lua.el b/smartparens-lua.el
index 0b7512a3ef..e6b4c90caa 100644
--- a/smartparens-lua.el
+++ b/smartparens-lua.el
@@ -66,7 +66,7 @@
 
 ;; all the pairs are expanded only if followed by "SPC" event.  This
 ;; will reduce false positives like 'dIFficult' to trigger.
-(sp-with-modes '(lua-mode)
+(sp-with-modes '(lua-mode lua-ts-mode)
   (sp-local-pair "if" "end"
                  :when '(("SPC"))
                  :unless '(sp-in-comment-p sp-in-string-p)

Reply via email to