diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2024-07-15 20:02:22 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-07-16 09:43:57 +0200 |
| commit | a0fd51c1e2db17ab21e2a2c907b232d05dfffc88 (patch) | |
| tree | 63abcde462f2276e3ccab6846eee7498f234e641 /runtime/doc | |
| parent | 08abb64680c0fb6d31546be22686db4997564b9c (diff) | |
| download | rneovim-a0fd51c1e2db17ab21e2a2c907b232d05dfffc88.tar.gz rneovim-a0fd51c1e2db17ab21e2a2c907b232d05dfffc88.tar.bz2 rneovim-a0fd51c1e2db17ab21e2a2c907b232d05dfffc88.zip | |
vim-patch:1cc4cae: runtime(typst): Add typst runtime files
closes: vim/vim#15234
https://github.com/vim/vim/commit/1cc4cae961a7b49608ef7bd56837cc723d49db4d
Co-authored-by: Gregory Anders <greg@gpanders.com>
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/filetype.txt | 4 | ||||
| -rw-r--r-- | runtime/doc/quickfix.txt | 11 | ||||
| -rw-r--r-- | runtime/doc/syntax.txt | 9 |
3 files changed, 24 insertions, 0 deletions
diff --git a/runtime/doc/filetype.txt b/runtime/doc/filetype.txt index 70bbd02790..c20651a775 100644 --- a/runtime/doc/filetype.txt +++ b/runtime/doc/filetype.txt @@ -991,6 +991,10 @@ You can change the default by defining the variable g:tex_flavor to the format let g:tex_flavor = "latex" Currently no other formats are recognized. +TYPST *ft-typst-plugin* + + *g:typst_conceal* +When |TRUE| the Typst filetype plugin will set the 'conceallevel' option to 2. VIM *ft-vim-plugin* diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt index 9ac7492b9b..7090694dc6 100644 --- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -1372,6 +1372,17 @@ shells and OSes and also does not allow to use other available TeX options, if any. If your TeX doesn't support "-interaction=nonstopmode", please report it with different means to express \nonstopmode from the command line. +TYPST COMPILER *compiler-typst* + +Vim includes a compiler plugin for Typst files. This compiler is enabled +automatically in Typst buffers by the Typst filetype plugin |ft-typst-plugin|. +Run |:make| to compile the current Typst file. + + *g:typst_cmd* +By default Vim will use "typst" as the command to run the Typst compiler. This +can be changed by setting the |g:typst_cmd| variable: > + let g:typst_cmd = "/path/to/other/command" + ============================================================================= 7. The error format *error-file-format* diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 6394cdc719..fd510eb772 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -3335,6 +3335,15 @@ are highlighted. To disable set it to zero in your .vimrc: > < The default value is 1. +TYPST *ft-typst-syntax* + + *g:typst_embedded_languages* +Typst files can embed syntax highlighting for other languages by setting the +|g:typst_embedded_languages| variable. This variable is a list of language +names whose syntax definitions will be included in Typst files. Example: > + + let g:typst_embedded_languages = ['python', 'r'] + VIM *vim.vim* *ft-vim-syntax* *g:vimsyn_minlines* *g:vimsyn_maxlines* There is a trade-off between more accurate syntax highlighting versus screen |