Closed danielnehrig closed 1 year ago
@danielnehrig To achieve that, you can create a custom component in your overseer settings.
In this minimal overseer config, we are defining the default components that will kick in every time compiler.nvim start a task.
{
"stevearc/overseer.nvim",
opts = {
component_aliases = {
-- Components included in default will apply to all tasks
default = {
{ "display_duration", detail_level = 2 },
"on_output_summarize",
"on_exit_set_status",
"on_complete_notify",
"on_complete_dispose",
},
},
},
},
From this point, it would be just a matter of creating your own custom component to send your event every time a task is started/finished.
Overseer has a bunch of documentation. It can be quite intimitating. I would start looking into how components work, list of existing components and then read the third party integration heirline/lualine before going for creating your own custom component, so you have all the info.
thanks for the response will look into it
@Zeioth thanks for the pointers overseer is something I've been looking for for quite a while been searching for a neomake replacement now I found it :) I got it working
@danielnehrig were you are to achieve what you wanted? If so, would you share it? It might be worth adding it to the wiki.
https://github.com/danielnehrig/nvim/blob/5ead88f6f6ea26eff3a0c3dc7e38900f2c1552de/lua/config/plugins/configs/statusline/components.lua#L116-L161
yes i created a component for the statusline to indicate the run process with some fancy animations
@Zeioth
Thank you for sharing!! I've been able to implement it too in heirline.
Can we have events like
CompilerRunPre CompilerRunPost
so we can execute logic after compilation has been done or when compiling has been startet 1 use case: for displaying a loading indicator that we are currently building