[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typst-ts-mode 075b450e44 199/246: chore
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typst-ts-mode 075b450e44 199/246: chore |
Date: |
Fri, 14 Feb 2025 16:55:27 -0500 (EST) |
branch: elpa/typst-ts-mode
commit 075b450e445951799335d0ccedd551b89d197a2d
Author: meowking <mr.meowking@tutamail.com>
Commit: meowking <mr.meowking@tutamail.com>
chore
---
typst-ts-mode.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/typst-ts-mode.el b/typst-ts-mode.el
index 01fb6b3a50..0f9f1a8edd 100644
--- a/typst-ts-mode.el
+++ b/typst-ts-mode.el
@@ -555,6 +555,7 @@ This function is meant to be used when user hits a return
key."
(grandparent-node (treesit-node-parent parent-node)))
(and (equal (treesit-node-type node) "ident")
(equal (treesit-node-type parent-node) "call")
+ (equal (treesit-node-field-name parent-node) "pattern")
(equal (treesit-node-type grandparent-node) "let"))))
(defun typst-ts-mode--imenu-name-function (node)
@@ -726,6 +727,14 @@ typst tree sitter grammar (at least %s)!"
(current-time-string min-time))
;; Imenu
(setq-local treesit-simple-imenu-settings
+ ;; Here we uses a trick. In the docs of
+ ;; `treesit-simple-imenu-settings', the second parameter should
+ ;; be a regexp string. However, it can be anything that
+ ;; the PRED in `treesit-thing-settings' can be
+ ;; For emacs 30, there are some restriction (second param must be
+ ;; regexp string) when you use default settings for outline
+ ;; (outline from imenu) see `treesit-major-mode-setup' and
+ ;; `treesit-outline-predicate'
`(("Functions" typst-ts-mode--imenu-function-defintion-p nil
typst-ts-mode--imenu-name-function)
("Headings" "^heading$" nil
typst-ts-mode--imenu-name-function)))
@@ -738,7 +747,6 @@ typst tree sitter grammar (at least %s)!"
(current-time-string min-time))
;; (setq-local treesit-thing-settings
;; `((typst ())))
-
;; Outline
(if nil ; (>= emacs-major-version 30)
;; FIXME maybe it's a upstream bug. Circle top-level section will cycle
all the content below
- [nongnu] elpa/typst-ts-mode b3f0a9e8a0 170/246: feat: add `typst-ts-mc-export-to-markdown` command, (continued)
- [nongnu] elpa/typst-ts-mode b3f0a9e8a0 170/246: feat: add `typst-ts-mc-export-to-markdown` command, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 4b36b9088d 177/246: fix: return on item node who has more than 2 children, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode fab310f9a0 183/246: refactor: remove autoload on functions that depend on typst-ts-mode, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 2a3fb8e577 184/246: fix: maarkup-extended font feature, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode aee8ff090c 244/246: doc: add Contribute information on README, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 96d82bc4ba 149/246: refactor: separate editing commands into another file, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode d8c64a99f4 150/246: docs: fix typo, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode ed22e9ddc3 164/246: doc(README): update co-maintainer information, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 2132974643 169/246: chore: remove unneeded functions, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 6a1ff662e1 194/246: fix(editing): typst-ts-mode-return on item newline issue, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 075b450e44 199/246: chore,
ELPA Syncer <=
- [nongnu] elpa/typst-ts-mode a6e6940956 202/246: refactor: do not `kill-line` because it will be in kill-ring, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 709e77733e 208/246: fix+chore: indentation rules for item, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 97ccb33aeb 215/246: chore: prefix argument handling for `typst-ts-compile` command, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 2c82246569 216/246: fix: `typst-ts-compile` preview doc by default, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 13b9894a4f 217/246: feat: #16 swapping numbered items works now, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 07cf3bcc89 229/246: Added function `typst-ts-preview`, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode f643036cc2 239/246: fix: having point after last column did not count as item #33, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 7c01c6821c 243/246: Merge pull request 'Add an option to customize the preview function.' (#36) from tkpapp/typst-ts-mode:tp/customize-preview-function into develop, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 271cedb1de 066/246: feat: add customization option to enable raw block highlighting, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode fded764913 069/246: fix(els): remove language tag map duplication, ELPA Syncer, 2025/02/14