AutoYADM commit: 2024-11-26 14:00:03
This commit is contained in:
parent
90a7369bc2
commit
c32b1c1e45
1 changed files with 27 additions and 1 deletions
|
@ -7,8 +7,32 @@ local function getWords()
|
|||
return w .. wc["words"]
|
||||
end
|
||||
end
|
||||
local modes = {
|
||||
NORMAL = "NRM",
|
||||
INSERT = "INS",
|
||||
VISUAL = "VIS",
|
||||
["V-LINE"] = "V-L",
|
||||
["V-BLOCK"] = "V-B",
|
||||
SELECT = "SEL",
|
||||
["S-LINE"] = "S-L",
|
||||
["S-BLOCK"] = "S-B",
|
||||
COMMAND = "CMD",
|
||||
TERMINAL = "TRM",
|
||||
["O-PENDING"] = "O-P",
|
||||
EX = "EX",
|
||||
REPLACE = "REP",
|
||||
["V-REPLACE"] = "V-R",
|
||||
}
|
||||
local sections = {
|
||||
lualine_a = { "mode" },
|
||||
lualine_a = {
|
||||
{
|
||||
"mode",
|
||||
fmt = function(str)
|
||||
return modes[str] or str
|
||||
end,
|
||||
},
|
||||
},
|
||||
-- lualine_a = { "mode" },
|
||||
lualine_b = { "branch", "diff" },
|
||||
lualine_c = { { "filename", path = 1 } },
|
||||
lualine_x = { "diagnostics", { "filetype", colored = false }, { getWords } },
|
||||
|
@ -29,6 +53,8 @@ return {
|
|||
theme = theme,
|
||||
-- section_separators = { left = "", right = "" },
|
||||
-- component_separators = { left = "", right = "" },
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
},
|
||||
sections = sections,
|
||||
inactive_sections = nb_inactive_sections,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue