feat: add detailed status messages for updater terminal states
This commit is contained in:
@@ -2,6 +2,7 @@ local data = require("data")
|
|||||||
|
|
||||||
return { -- Neovim Updater
|
return { -- Neovim Updater
|
||||||
"rootiest/nvim-updater.nvim",
|
"rootiest/nvim-updater.nvim",
|
||||||
|
lazy = false,
|
||||||
opts = {
|
opts = {
|
||||||
verbose = false,
|
verbose = false,
|
||||||
check_for_updates = true,
|
check_for_updates = true,
|
||||||
|
|||||||
@@ -197,19 +197,26 @@ return { -- Lualine
|
|||||||
LazyVim.lualine.pretty_path(),
|
LazyVim.lualine.pretty_path(),
|
||||||
padding = { left = 0, right = 0 },
|
padding = { left = 0, right = 0 },
|
||||||
cond = function()
|
cond = function()
|
||||||
return vim.bo.filetype ~= "neovim_updater_term"
|
return not string.find(vim.bo.filetype, "neovim_updater_term")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ -- Neovim Updater
|
{ -- Neovim Updater
|
||||||
function()
|
function()
|
||||||
return "Neovim Updating.."
|
local ft = vim.bo.filetype
|
||||||
|
if ft == "neovim_updater_term.updating" then
|
||||||
|
return "Neovim Updating.."
|
||||||
|
elseif ft == "neovim_updater_term.cloning" then
|
||||||
|
return "Neovim Source Cloning.."
|
||||||
|
elseif ft == "neovim_updater_term.changes" then
|
||||||
|
return "Neovim Source Changelog"
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
icon = " ",
|
icon = " ",
|
||||||
color = "lualine_a_terminal",
|
color = "lualine_a_terminal",
|
||||||
separator = { left = "", right = "" },
|
separator = { left = "", right = "" },
|
||||||
padding = { left = 0, right = 0 },
|
padding = { left = 0, right = 0 },
|
||||||
cond = function()
|
cond = function()
|
||||||
return vim.bo.filetype == "neovim_updater_term"
|
return string.find(vim.bo.filetype, "neovim_updater_term") ~= nil
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -302,7 +309,7 @@ return { -- Lualine
|
|||||||
end,
|
end,
|
||||||
padding = { left = 1, right = 1 },
|
padding = { left = 1, right = 1 },
|
||||||
cond = function()
|
cond = function()
|
||||||
return vim.bo.filetype ~= "neovim_updater_term"
|
return not string.find(vim.bo.filetype, "neovim_updater_term")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -369,6 +376,7 @@ return { -- Lualine
|
|||||||
},
|
},
|
||||||
{ -- Encoding
|
{ -- Encoding
|
||||||
"encoding",
|
"encoding",
|
||||||
|
show_bomb = true,
|
||||||
padding = { left = 0, right = 1 },
|
padding = { left = 0, right = 1 },
|
||||||
separator = "",
|
separator = "",
|
||||||
icon = "",
|
icon = "",
|
||||||
|
|||||||
Reference in New Issue
Block a user