kaarmu / typst.vim

Vim plugin for Typst
MIT License
281 stars 24 forks source link

"Undefined variable" errors when plugin is loaded #83

Closed 01mf02 closed 7 months ago

01mf02 commented 7 months ago

Thanks for your work on this nice plugin!

I installed typst.vim to ~/.vim/pack/all/start/typst.vim. Now, when loading a Typst file, I get a screen that shows error messages such as "Undefined variable: g:typst_conceal":

typst vim-error

I can make the errors not show up by putting the following in my ~/.vimrc:

let g:typst_conceal = 1
let g:typst_conceal_math = 1
let g:typst_conceal_emoji = 1
let g:typst_embedded_languages = []

I'm using Vim 8.2. Other plugins (such as vim-pandoc) work fine.

brandonsorensen commented 7 months ago

Experiencing the same issue. Vim 9.0, macOS 14.2.1, installed via VimPlug

kaarmu commented 7 months ago

Oops! Thank you guys for reporting this!

01mf02 commented 7 months ago

Thanks a lot for fixing this!