-
I followed the tutorial, but when I run my task the status bar shows (customized to rust)
How do I skip the My template is return {
name = "Rust build",
builder = function()
local file = vim.fn.expand("%:p")
local outfile = vim.fn.expand("%:p:r")
return {
cmd = { "rustc" },
args = { file, "-o", outfile },
components = {
{
"on_output_quickfix",
open_on_match = true,
},
"default",
},
}
end,
condition = {
filetype = { "rust" },
},
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is something a little bit tricky here, which is vim's rules for when it decides to show the
Doesn't cause it to appear, but
Now we see There are a lot of possible options from here:
require("overseer").setup({
component_aliases = {
-- Most tasks are initialized with the default components
default = {
{ "display_duration", detail_level = 2 },
"on_output_summarize",
"on_exit_set_status",
-- "on_complete_notify", comment this out or delete it
"on_complete_dispose",
},
},
}) Or you could explicitly set just the components you want when you create the task, instead of using "default" return {
name = "Rust build",
builder = function()
local file = vim.fn.expand("%:p")
local outfile = vim.fn.expand("%:p:r")
return {
cmd = { "rustc" },
args = { file, "-o", outfile },
components = {
{
"on_output_quickfix",
open_on_match = true,
},
{ "display_duration", detail_level = 2 },
"on_output_summarize",
"on_exit_set_status",
"on_complete_dispose",
},
}
end,
condition = {
filetype = { "rust" },
},
} There are some more possibilities depending on exactly how you want this to behave, but hopefully that gives you some avenues to explore for now. |
Beta Was this translation helpful? Give feedback.
There is something a little bit tricky here, which is vim's rules for when it decides to show the
Press ENTER ...
message. I haven't looked at the internals, but empirically and from years of experience it tends to show up when more than one line of output appears in rapid succession. For example:Doesn't cause it to appear, but
Now we see
Press ENTER ...
.There are a lot of possible options from here:
SUCCESS rustc ...
line and try to eliminate that.:messages
will show your recent messages.