Function: treesit-fold-summary--apply-sym

treesit-fold-summary--apply-sym is a natively compiled function defined in treesit-fold-summary.el.

Signature

(treesit-fold-summary--apply-sym LINE SYM)

Documentation

Remove SYM from LINE.

Source Code

;; Defined in /nix/store/mpy1l6b4hlzpp59l4vbahq83hqa821ci-emacs-packages-deps/share/emacs/site-lisp/elpa/treesit-fold-0.2.1/treesit-fold-summary.el
(defun treesit-fold-summary--apply-sym (line sym)
  "Remove SYM from LINE."
  (when (string-prefix-p sym line)
    (setq line (substring line (length sym) (length line))
          line (string-trim line)))
  line)