Skip to content

Commit

Permalink
feat: Try trigger electric pair insert instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 6, 2024
1 parent 5581604 commit bc4821d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vs-edit-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,9 @@
(defun vs-edit-opening-curly-bracket-key ()
"For programming langauge that need `{`."
(interactive)
(vs-edit--delete-region)
(cond ((vs-edit--comment-or-string-p)
(cond ((use-region-p)
(self-insert-command 1 ?\{))
((vs-edit--comment-or-string-p)
(insert "{"))
(t
(let (pretty-it space-infront)
Expand Down

0 comments on commit bc4821d

Please sign in to comment.