branch: externals/indent-bars
commit bfcc3fac5070e047998c516b9e422c09fb2ebd9a
Author: JD Smith <[email protected]>
Commit: JD Smith <[email protected]>
assign update-depth-function in :success clause
---
indent-bars-ts.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/indent-bars-ts.el b/indent-bars-ts.el
index 59be1ceb5e..e6bf13eca5 100644
--- a/indent-bars-ts.el
+++ b/indent-bars-ts.el
@@ -399,8 +399,10 @@ performed."
(treesit-query-error
(setq indent-bars-no-descend-string nil)
(message "%s. See `indent-bars-no-descend-string'.\n%s"
- "indent-bars: malformed string query; disabling"
- err)))))
+ "indent-bars: malformed treesitter string query; disabling"
+ err))
+ (:success (setq indent-bars--update-depth-function
+ #'indent-bars-ts--update-indentation-depth)))))
;; Emphasis Scope: use alternate styling outside current scope
(when-let ((types (alist-get lang indent-bars-treesit-scope)))