Skip to content

Commit

Permalink
rev: fold delay
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 11, 2024
1 parent 7666ace commit 25bc31d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions vs-edit-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@

;;; Code:

(require 'sgml-mode)
(eval-when-compile
(require 'mwim)
(require 'ts-fold)
(require 'noflet))

(require 'mwim)
(require 'ts-fold)
(require 'noflet)
(require 'sgml-mode)

(defgroup vs-edit nil
"Minor mode accomplish editing experience in Visual Studio."
Expand Down Expand Up @@ -396,6 +397,7 @@

(defun vs-edit--range-at-pos ()
"Return the range at position."
(require 'ts-fold)
(when-let ((tree-sitter-tree)
(node (ts-fold--foldable-node-at-pos)))
(cons (tsc-node-start-position node) (tsc-node-end-position node))))
Expand Down

0 comments on commit 25bc31d

Please sign in to comment.