-
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
VimtexEventCompileRunning
event for continuous compilation
#2290
Comments
This already exists, but I forgot to document it. You want the |
Note, if you want this for a statusline feature, then you don't need to rely on the events. I use a custom statusline, but I believe my code should be not so hard to read, see here: let l:status = getbufvar(a:bufnr, 'vimtex').compiler.status + 1
let [l:symbol, l:color] = get([
\ ['[⏻] ', ''],
\ ['[⏻] ', ''],
\ ['[⟳] ', ''],
\ ['[✔︎] ', 'SLInfo'],
\ ['[✖] ', 'SLAlert']
\], l:status) The idea here is that the statusline can check the |
This is even better! Thank you! :) |
No problem :) |
Is your feature request related to a problem? Please describe it.
I would like to display the compile status on my statusline. Currently, vimtex provides 3 events that trigger when:
The above works great for single-shot compilation, but not when using continuous compilation, since compile runs every time the document is saved.
Describe the solution you'd like
I would like another event that is triggered when a cycle of continuous compilation runs.
The text was updated successfully, but these errors were encountered: