Make indent-parser the default
This commit is contained in:
parent
a8eb81e09c
commit
579112c406
@ -377,11 +377,12 @@ was last built."
|
|||||||
children
|
children
|
||||||
(or (-> (origami-fold-find-path-with-range
|
(or (-> (origami-fold-find-path-with-range
|
||||||
(origami-get-cached-tree buffer) beg end)
|
(origami-get-cached-tree buffer) beg end)
|
||||||
-last-item
|
-last-item
|
||||||
origami-fold-data)
|
origami-fold-data)
|
||||||
(origami-create-overlay beg end offset buffer)))))))
|
(origami-create-overlay beg end offset buffer)))))))
|
||||||
(-when-let (parser-gen (cdr (assoc (buffer-local-value 'major-mode buffer)
|
(-when-let (parser-gen (or (cdr (assoc (buffer-local-value 'major-mode buffer)
|
||||||
origami-parser-alist)))
|
origami-parser-alist))
|
||||||
|
'origami-indent-parser))
|
||||||
(funcall parser-gen create))))
|
(funcall parser-gen create))))
|
||||||
|
|
||||||
(defun origami-get-fold-tree (buffer)
|
(defun origami-get-fold-tree (buffer)
|
||||||
|
Loading…
Reference in New Issue
Block a user