Skip to content

Commit

Permalink
更新typst相关内容
Browse files Browse the repository at this point in the history
* 蔓艸/緑衣/補.org
* 蔓艸/麐之趾/篇.org
  • Loading branch information
nasyxx committed Jan 13, 2024
1 parent 449e246 commit b03f51c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions 蔓艸/緑衣/補.org
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ https://github.com/minad/corfu
org-mode-hook
shell-mode-hook
eshell-mode-hook
text-mode-hook
eval-expression-minibuffer-setup-hook))
;; Extensions
(:mode-hook
Expand Down
8 changes: 6 additions & 2 deletions 蔓艸/麐之趾/篇.org
Original file line number Diff line number Diff line change
Expand Up @@ -1913,14 +1913,18 @@ Tree Sitter support for Typst. https://git.sr.ht/~meow_king/typst-ts-mode
(:url "https://git.sr.ht/~meow_king/typst-ts-mode")
(:tag "languages" "grammar" "typst")
(:opt typst-ts-markup-header-same-height nil
typst-ts-mode-indent-offset 2))
typst-ts-mode-indent-offset 2)
(:mode-hook
(keymap-local-unset "M-<left>")
(keymap-local-unset "M-<right>")))
#+end_src

Typst LSP support. https://github.com/nvarner/typst-lsp

#+begin_src emacs-lisp
(setup typst-lsp
(:hook lsp)
(:hooks typst-mode-hook lsp
typst-ts-mode-hook lsp)
(:after* typst-ts-mode
(require 'lsp-mode)
(add-to-list 'lsp-language-id-configuration
Expand Down

0 comments on commit b03f51c

Please sign in to comment.