Closed AadiWaghray closed 1 year ago
When using the default conceal features which are enabled by default (and syntax enable and set conceallevel=2 as stated in the documentation), the text in question (_{a}, \omega, ^{a}, etc.) is hidden but not replaced with the appropriate characters. The error is likely a silly mistake on my side, but I have not figured it out and would like to use the conceal feature.
Yes, it seems a silly mistakes (we all make them!):
https://github.com/AadiWaghray/dotfiles/blob/0eee25e2d783d864c565b3e38f4171594941e87f/init.vim#L33
The option you set here disable the conceal feature.
Notice, though, that you shouldn't configure VimTeX by putting config in after/plugin/tex.vim
. VimTeX configuration should be specified before VimTeX is loaded, which means you should put it in plugin/tex.vim
or in your vimrc
or init.vim
. This matters for some options, not all, but when it matters it can lead to hard-to-understand problems.
I think the same idea or concept is true for many plugins, and so I would generally advice that you put your plugin configuration in plugin/...
, not in after/plugin/...
.
Apologies, I poorly explained myself. As I mentioned in the steps to reproduce section, I currently have that setting in place because the mentioned behavior makes it difficult to edit files (superscripts, environment labels, and greek letters are invisible until my cursor is on the relevant line). With that line in place, all of the text which would be concealed is not (it is visible). However, the bad behavior occurs when the line is removed.
Also, thank you for the advice regarding how to organize my files. I will implement it soon.
Apologies, I poorly explained myself. As I mentioned in the steps to reproduce section, I currently have that setting in place because the mentioned behavior makes it difficult to edit files (superscripts, environment labels, and greek letters are invisible until my cursor is on the relevant line). With that line in place, all of the text which would be concealed is not (it is visible). However, the bad behavior occurs when the line is removed.
There's a very good reason for me asking users to provide both 1) minimal examples, and 2) steps to reproduce. The more precise and explicit you are at explaining your issue, the easier it is for me to help you.
Also, thank you for the advice regarding how to organize my files. I will implement it soon.
Good, do that. After you have done that, and if the issue you have still persists: Please create a new issue and provide a minimal example and be more explicit about what you are doing. I'll be glad to help, but I can't help without understanding what is wrong. And I am quite confident that you problem is due to a configuration issue.
Description
When using the default conceal features which are enabled by default (and syntax enable and set conceallevel=2 as stated in the documentation), the text in question (_{a}, \omega, ^{a}, etc.) is hidden but not replaced with the appropriate characters. The error is likely a silly mistake on my side, but I have not figured it out and would like to use the conceal feature.
Steps to reproduce
Relevant information init.vim information is given above. Short dot file can be found at https://github.com/AadiWaghray/dotfiles (note that I currently have the feature disabled because it doesn't function). Any LaTeX file with text which should be concealed by default conceal settings should produce error.
Expected behavior
The text in question (_{a}, \omega, ^{a}, etc.) should be replaced with the appropriate super/subscript or greek letter.
Actual behavior
When using the default conceal features (and syntax enable and set conceallevel=2 as stated in the documentation), the text in question (_{a}, \omega, ^{a}, etc.) is hidden but not replaced with the appropriate characters.
Do you use a latexmkrc file?
No
VimtexInfo