You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
" min.vimfiletypeindentpluginonsyntaxoncallplug#begin('~/.local/share/nvim/plugged')
Plug 'https://github.com/vimwiki/vimwiki', { 'branch': 'dev' }
letg:vimwiki_list= [{'path': '/tmp/vimwiki',
\ 'syntax': 'markdown', 'ext': '.md'}]
Plug 'https://github.com/lervag/vimtex'" show syntax groups at the cursornnoremap<unique><silent><F2> :echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')<CR>callplug#end()
Include the syntax you are using (default / Markdown / MediaWiki)
markdown, see the minimal vim file above
Provide a detailed description of the problem including steps to reproduce the issue.
I'm not certain if this in intended or not, but vimwiki doesn't set texMathZone syntax group. Other plugins like https://github.com/preservim/vim-markdown or https://github.com/vim-pandoc/vim-pandoc-syntax use it, and I can see many colourschemes support it, so it might be worth adding in vimwiki as well.
With file opened with nvim -u min.vim test.md
$HERE$
\( HERE \)\[ HERE \]$$ HERE $$
in all lines with cursor inside math block echo vimtex#syntax#in_mathzone() returns 0. This function is commonly used to add context-sensitive tex snippets that trigger only when it makes sense.
For reference, definition of in_mathzone can be seen here.
Include the output of :VimwikiShowVersion.
Version: 2023.05.12
Os: Linux
Vim: 801
Branch: dev
Revision: 0bb1b49
Date: 2023-10-31 13:45:18 -0300
The text was updated successfully, but these errors were encountered:
.vimrc
markdown, see the minimal vim file above
I'm not certain if this in intended or not, but vimwiki doesn't set
texMathZone
syntax group. Other plugins like https://github.com/preservim/vim-markdown or https://github.com/vim-pandoc/vim-pandoc-syntax use it, and I can see many colourschemes support it, so it might be worth adding in vimwiki as well.With file opened with
nvim -u min.vim test.md
in all lines with cursor inside math block
echo vimtex#syntax#in_mathzone()
returns 0. This function is commonly used to add context-sensitive tex snippets that trigger only when it makes sense.For reference, definition of
in_mathzone
can be seen here.:VimwikiShowVersion
.The text was updated successfully, but these errors were encountered: