Use new devcontainer build progress autocmd
parent
835f6f44f8
commit
de6f4277d2
|
@ -177,9 +177,8 @@ local statuslines = {
|
||||||
.. "%*"
|
.. "%*"
|
||||||
end
|
end
|
||||||
|
|
||||||
local devcontainer_build_status = require("devcontainer.status").get_status().build_status
|
local build_status_last = require("devcontainer.status").find_build({ running = true })
|
||||||
local build_status_last = devcontainer_build_status[#devcontainer_build_status]
|
if build_status_last then
|
||||||
if build_status_last and build_status_last.running then
|
|
||||||
local build_lines = build_status_last.commands_run
|
local build_lines = build_status_last.commands_run
|
||||||
local command_info = build_lines[#build_lines]
|
local command_info = build_lines[#build_lines]
|
||||||
local command_status_line = ""
|
local command_status_line = ""
|
||||||
|
@ -235,7 +234,8 @@ return {
|
||||||
update_colors()
|
update_colors()
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
vim.api.nvim_create_autocmd({ "User LspProgressUpdate", "User LspRequest" }, {
|
vim.api.nvim_create_autocmd("User", {
|
||||||
|
pattern = { "LspProgressUpdate", "LspRequest", "DevcontainerBuildProgress" },
|
||||||
group = au_id,
|
group = au_id,
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.cmd("redrawstatus")
|
vim.cmd("redrawstatus")
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
-- Devcontainer setup
|
-- Devcontainer setup
|
||||||
require("devcontainer").setup({})
|
require("devcontainer").setup({
|
||||||
|
autocommands = {
|
||||||
|
clean = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue