-
Notifications
You must be signed in to change notification settings - Fork 407
Improve glossaries-extra and bib2gls support #3073
Description
Hello, first of all I'd like to give you my gratitude for developing and maintaining this plugin. I've been using it for almost 4 years and have created hundreds of documents using it.
Is your feature request related to a problem? Please describe it.
Currently bib2gls and glossaries lack some features:
- You can't use the context menu on gls entries to preview or edit bib entries like you can do with normal bib files with the
\citecommand. - spellchecking inconsistent for some commands:
\gls{entry_name}is not highlighted as a misspelled word and the_symbol is not highlighted.\Gls{entry_name}is highlighted as a misspelled word and also the_symbol is highlighted as an illegal symbol.


I have disabled all plugins (so no treesitter) and set vimtex_syntax_enabled = 1.
If I disable syntax the gls command argument is also highlighted as wrong.
Describe the solution you'd like
-
It would be really good to have an ability to easily preview and edit bib2gls entries (for some reason, ctags also do not work with these bib files either, not sure why).
-
The highlighting of illegal symbols is a nice feature, so it would be great if it worked consistently.
Describe alternatives you've considered
I've tried using vimtex_syntax_custom_cmds to manually set the argspell (like here #2960 (comment)) and it is working:
g.vimtex_syntax_custom_cmds = {
{ name = 'glsdesc', argspell = 0, argstyle = 'bold', hlgroup = 'texCmd', nextgroup = 'texGlsArg'}
}
I've added also the argstyle argument to visually confirm that I've set it right

As you can see, the argspell parameter disables spell checking. The illegal symbol highlighting is disabled by adding the nextgroup parameter.
It's good as a temporary solution, but I am not sure if it is the right way to do it, because I need to add about 100 commands.