diff --git a/smartparens-config.el b/smartparens-config.el index d354d112..c639e5e9 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 0b7512a3..e6b4c90c 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)