feat: enhance statusline with icon and text concatenation
This commit is contained in:
@@ -1245,9 +1245,12 @@ function M.mc_statusline()
|
||||
status.color = "lualine_a_normal"
|
||||
end
|
||||
end
|
||||
|
||||
-- Add the icon and text to the status object
|
||||
status.icon_short_text = status.icon .. status.short_text
|
||||
status.icon_text = status.icon .. status.text
|
||||
|
||||
-- Update the status object
|
||||
if status.cursors > 1 and status.disabled > 0 then
|
||||
status.count = status.cursors .. "/" .. status.disabled
|
||||
elseif status.cursors > 1 and status.disabled <= 0 then
|
||||
@@ -1482,6 +1485,7 @@ function M.setup_replace_ellipsis(enable)
|
||||
vim.api.nvim_create_augroup("EllipsisReplace", { clear = true })
|
||||
|
||||
if enable then
|
||||
-- Add an autocmd to handle the InsertLeave event
|
||||
vim.api.nvim_create_autocmd("InsertLeave", {
|
||||
group = "EllipsisReplace",
|
||||
callback = M.replace_ellipsis,
|
||||
|
||||
+10
-3
@@ -13,7 +13,7 @@ local rootiest = require("config.rootiest")
|
||||
|
||||
M.alternate = {
|
||||
{ -- Toggle Alternate
|
||||
"<leader>a",
|
||||
"<leader>A",
|
||||
"<cmd>Alternate<cr>",
|
||||
desc = "Toggle Alternate",
|
||||
},
|
||||
@@ -535,6 +535,13 @@ M.gp = {
|
||||
}
|
||||
|
||||
M.group = {
|
||||
avante = {
|
||||
{ -- Avante
|
||||
lhs = "<leader>a",
|
||||
icon = { icon = "", color = "red" },
|
||||
group = "Avante",
|
||||
},
|
||||
},
|
||||
chatgpt = { -- ChatGPT
|
||||
lhs = "<leader>cx",
|
||||
group = "ChatGPT",
|
||||
@@ -804,7 +811,7 @@ M.lazygit = {
|
||||
end,
|
||||
desc = "LazyGit",
|
||||
},
|
||||
{ -- LazyGit
|
||||
{ -- LazyGit
|
||||
"<leader>gg",
|
||||
function()
|
||||
require("data.func").open_lazygit_popup()
|
||||
@@ -906,7 +913,7 @@ M.misc = {
|
||||
{ -- Telescope Find Files
|
||||
lhs = "<leader><leader>",
|
||||
rhs = function()
|
||||
LazyVim.pick("find_files")()
|
||||
LazyVim.pick("files")()
|
||||
end,
|
||||
desc = "Find Files",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user