typst-conceal.vim

October 11, 2023 ยท View on GitHub

typst-conceal.vim

Vim Conceal for Typst

Before

After

Output

Installation

Plug 'MrPicklePinosaur/typst-conceal.vim', {'for': 'typst'}   " vim plug
Plugin 'MrPicklePinosaur/typst-conceal.vim'                   " vundle

Also ensure that conceal level is set

set conceallevel=2

Configuration

It is possible to individually configure if math symbols and emoji are concealed. By default all conceals are enabled by default.

let g:typst_conceal_math=1
let g:typst_conceal_emoji=1

Credits

Based off of tex-conceal.vim