Skip to content

More verbose compiler status #2141

@clason

Description

@clason

Vimtex provides vimtex#compiler#is_running() to check whether continuous compilation has been activated (in which case it returns 1), which is very convenient for statuslines.

What would be even more convenient is if the status could distinguish "currently compiling", "finished compiling successfully", and "finished compiling with errors" (say, by returning 1, 2, and either 3 or -1) -- which I could then display in my statusline using different symbols.

For a statusline, the maximal convenience would be to have a buffer variable b:vimtex_compiler_status with these three values that is updated by vimtex itself.

I know I can probably finagle the current function and vimtex#compiler#callback() to achieve this, but it seems both easier (for me ;)) and more efficient to not poll these functions on every redraw?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions