feat: take configuration items from tinymist section (#835)

* feat: take configuration items from `tinymist` section

* docs: update configuration guide in emacs
This commit is contained in:
Myriad-Dreamin 2024-11-16 17:32:11 +08:00 committed by GitHub
parent 8e36f25cf2
commit 263458a80b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 29 additions and 19 deletions

View file

@ -42,24 +42,7 @@ For example, if you want to export PDF on save:
```el
(setq-default eglot-workspace-configuration
'(:exportPdf "onSave"))
```
Here is an example for both configuring `pylsp` and `tinymist`
```el
(setq-default eglot-workspace-configuration
'(:pylsp (:plugins (:ruff (:enabled t)))
:exportPdf "onSave"))
```
NOTE: Currently, `tinymist` doesn't support having its name as the top-level
configuration entry, so the following configuration won't work:
```el
(setq-default eglot-workspace-configuration
'(:pylsp (:plugins (:ruff (:enabled t)))
:tinymist (:exportPdf "onSave")))
'(:tinymist (:exportPdf "onSave")))
```
You can also have configuration per directory. Be sure to look at the