I'm trying to type the following latex in nvim:
f_{high}=\{1209,1336,1477,1633\}Hz.
For some reason, nvim is rendering this as:
fₕᵢgₕ= \{ 1209, 1336, 1477, 1633\}\si{Hz}
How do I fix this?
The problem is that the subscript for g
doesn't exist, and those for h
and i
look "off."
As noted, you can either
set conceallevel=0
)let g:tex_conceal = 'abdmg'
)—see :help g:tex_conceal
Do you by any chance have the plugin KeitaNakamura/tex-conceal.vim
installed? Try putting the following in .vimrc
:
set conceallevel=0
let g:tex_conceal='abdgm'
I hope this solves your problem.
conceal
globally, which is probably not desirable. Going this way, a better approach would be to create either a filetype autocommand or filetype plugin (e.g. ~/.vim/ftplugin/tex.vim
) and use setlocal conceallevel=0
instead.
Apr 8, 2020 at 21:22
conceal
, then this is a duplicate of the question linked by Hotschke. If it's the unsubscriptedg
, then perhaps this should stay open.