Skip to content

Commit

Permalink
Merge pull request #1183 from dpassen/support-lua-ts-mode
Browse files Browse the repository at this point in the history
Add support for lua-ts-mode
  • Loading branch information
Fuco1 authored Mar 17, 2024
2 parents 0716960 + f4ae234 commit d01e107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions smartparens-config.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
2 changes: 1 addition & 1 deletion smartparens-lua.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d01e107

Please sign in to comment.