~ % vim --version
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by bmizerany@blaptopvm
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/share/nvim"
; git clone https://github.com/terrastruct/d2-vim/ /home/bmizerany/.config/nvim/pack/github/start/d2-vim
Error detected while processing /home/bmizerany/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/bmizerany/.config/nvim/init.lua:5: Vim(if):E121: Undefined variable: g:d2_block_string_syntaxes
stack traceback:
[C]: in function 'cmd'
/home/bmizerany/.config/nvim/init.lua:5: in main chunk
Press ENTER or type command to continue
" d2
let g:d2_block_string_syntaxes = {
\ 'd2': ['d2'],
\ 'markdown': ['md', 'markdown'],
\ 'javascript': ['javascript', 'js'],
\ 'html': ['html'],
\ 'json': ['json'],
\ 'c': ['c'],
\ 'go': ['go'],
\ 'sh': ['sh', 'ksh', 'bash'],
\ 'css': ['css'],
\ 'vim': ['vim'],
\ }
but that didn't help.
I'm a little stumped because my vim-script fu is weak. Any pointers would be appreciated.