possibility to customize look of the table of contents? #3165
-
Howdy, first of love this plugin, it undersells its features imo (like As a few sidenotes does being in lua make it more capable to redraw stuff (for neovim) as alot of the neovim plugins Ive seen that provide a UI seem to look "better" or more extensible. also why vim over neovim? I think I know why this is written in vimscript it would both be alot of work to rewrite and also drop support for vim afaik. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
<3
Well, sort of. You can't customize the look of the built-in TOC except through the limited keys in You can also change the syntax highlight groups. This is not documented, so it would require some amount of skill on your side - the groups are defined here: vimtex/autoload/vimtex/toc.vim Line 347 in 85cb04f
No, but there is an API that you can use to build your own if you are an expert user. I would recommend looking at e.g. the fzf.vim TOC interface to see how the api is used, specifically, look for the call to
Ok. Adding support for ddu will require user contributions, as I don't use it. And keeping support for deprecated plugins is probably not a good idea, but I guess removing it could be annoying to some users. I'll have to think about that.
Nah, Lua is good - it is faster and generally a better language than Vimscript. But I would say it is rather the Neovim development and API that allows for better UIs. Still, you could claim that this development is made possible by Lua. In any case, I have to admit UI is hard and VimTeX has a lot of baggage that makes it hard to modernize things in Lua. Or, at least it's a lot of work.
Because when VimTeX was started, Neovim was not a thing. VimTeX was created in 2013, Neovim only started in 2014. And I didn't start to use it before 2016 myself. And as a long-time Vim user I decided to keep development of VimTeX in Vimscript.
Yes, precisely. |
Beta Was this translation helpful? Give feedback.
<3
Well, sort of. You can't customize the look of the built-in TOC except through the limited keys in
g:vimtex_toc_config
.You can also change the syntax highlight groups. This is not documented, so it would require some amount of skill on your side - the groups are defined here:
vimtex/autoload/vimtex/toc.vim
Line 347 in 85cb04f
No, but there is an API that…