-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom conceal rules #2634
Comments
Also I wonder if it is possible to change |
What you are asking for is unfortunately a much more complicated conceal. It is possible by use of some hacks. I'll see if I can make a function that generalizes this for commands like
No; VimTeX uses the legacy syntax engine and it does not have the concept of a |
I've pushed an update that may resolve this. Please see |
Thanks! But it seems this command not work well on my neovim: I type |
Sorry, my mistake. I've pushed a new update that I think works better. |
Ah, yes. That is a much harder problem, because for the conceals to work, we need to match the region start and region end with the concealed groups. This means that we need the The example you give is trivial, though, because you could write it as |
I think I found another way to do it. Please update and test again. |
I have learned the command
g:vimtex_syntax_custom_cmds
but it seems it cannot support options for args and custom argstyle. For example, I want to conceal\ket{\psi}
to|ψ>
, conceal\bra{A\varphi}
to<Aφ|
(conceal\ket{}
,\bra{}
... commands to braket like. Thanks!The text was updated successfully, but these errors were encountered: