[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/treesit-fold bb11d49dfe 054/417: wip
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/treesit-fold bb11d49dfe 054/417: wip |
Date: |
Mon, 1 Jul 2024 10:02:10 -0400 (EDT) |
branch: elpa/treesit-fold
commit bb11d49dfe1348e8a62cb0badef23e6ae7d040c6
Author: Jen-Chieh Shen <jcs090218@gmail.com>
Commit: Jen-Chieh Shen <jcs090218@gmail.com>
wip
---
tree-sitter-fold.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tree-sitter-fold.el b/tree-sitter-fold.el
index 3c05a258b0..cc4947e843 100644
--- a/tree-sitter-fold.el
+++ b/tree-sitter-fold.el
@@ -42,6 +42,7 @@
(require 'subr-x)
(require 'tree-sitter)
+(require 'tree-sitter-fold-summary)
;;
;; (@* "Customization" )
@@ -190,9 +191,11 @@ This function is borrowed from
`tree-sitter-node-at-point'."
(defun tree-sitter-fold--create-overlay (range)
"Create invisible overlay in RANGE."
(when (not (null range))
- (let ((ov (make-overlay (car range) (cdr range))))
+ (let* ((beg (car range)) (end (cdr range)) (ov (make-overlay beg end)))
(overlay-put ov 'invisible 'tree-sitter-fold)
- (overlay-put ov 'display tree-sitter-fold-replacement)
+ (overlay-put ov 'display (or (and tree-sitter-fold-show-summary
+ (tree-sitter-fold--get-summary
(buffer-substring beg end)))
+ tree-sitter-fold-replacement))
(overlay-put ov 'face 'tree-sitter-fold-replacement-face)
(overlay-put ov 'isearch-open-invisible
#'tree-sitter-fold--isearch-open))))
- [nongnu] elpa/treesit-fold d09b81affc 026/417: Add Cask, (continued)
- [nongnu] elpa/treesit-fold d09b81affc 026/417: Add Cask, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 82224e74b5 031/417: Add badges, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 8953a0f68b 030/417: Add CI, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 399af3b42f 036/417: Add more doc, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold d81b48d22d 037/417: Organize order, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold cadd17a046 038/417: Add emoji, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold cd5ba51961 046/417: Update CASK, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 9f6b47beaf 053/417: Split summary, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 89d353d40f 051/417: Update order, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 5efa12917f 049/417: Update address, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold bb11d49dfe 054/417: wip,
ELPA Syncer <=
- [nongnu] elpa/treesit-fold 0cfd013956 055/417: Test, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 8c6997a490 060/417: Update doc, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold edf623a794 067/417: Add scirpt, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold de8e8fe97b 078/417: Add block, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold b18525f494 079/417: Fix folde mode, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold d08d138fa9 081/417: Add rust, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 13a35c38d3 085/417: Fix void function, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold bbfd8658b0 091/417: Clean up, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 0d3e776402 094/417: Replace nix with simpler rule sets, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 1995c646fd 103/417: Fix csharp summary, ELPA Syncer, 2024/07/01