mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 09:18:44 +02:00
add: lualine template
This commit is contained in:
parent
c575f0b93f
commit
7f1637b6e8
5 changed files with 90 additions and 5 deletions
|
@ -145,11 +145,19 @@ return {
|
|||
return icons.ui.Neovim .. " " .. str
|
||||
end,
|
||||
},
|
||||
mode_parallelogram = {
|
||||
"mode",
|
||||
padding = 1,
|
||||
separator = { left = " ", right = "" },
|
||||
fmt = function(str)
|
||||
return icons.ui.Neovim .. " " .. str
|
||||
end,
|
||||
},
|
||||
|
||||
mode_square = {
|
||||
"mode",
|
||||
padding = 1,
|
||||
separator = { left = "" },
|
||||
separator = { left = " " },
|
||||
fmt = function(str)
|
||||
return icons.ui.Neovim .. " " .. str
|
||||
end,
|
||||
|
@ -215,4 +223,39 @@ return {
|
|||
},
|
||||
}
|
||||
end,
|
||||
transparent = function(colors)
|
||||
return {
|
||||
normal = {
|
||||
a = { fg = colors.skyblue_1, bg = colors.black_transparant },
|
||||
b = { fg = colors.white, bg = colors.black_transparant },
|
||||
c = { fg = colors.white, bg = colors.black_transparant },
|
||||
},
|
||||
|
||||
insert = {
|
||||
a = { fg = colors.blue, bg = colors.black_transparant },
|
||||
b = { fg = colors.white, bg = colors.black_transparant },
|
||||
},
|
||||
visual = {
|
||||
a = { fg = colors.cyan, bg = colors.black_transparant },
|
||||
b = { fg = colors.white, bg = colors.black_transparant },
|
||||
},
|
||||
replace = {
|
||||
a = { bg = colors.black_transparant, fg = colors.red },
|
||||
b = { bg = colors.black_transparant, fg = colors.white },
|
||||
},
|
||||
command = {
|
||||
a = { bg = colors.black_transparant, fg = colors.yellow },
|
||||
b = { bg = colors.black_transparant, fg = colors.white },
|
||||
},
|
||||
terminal = {
|
||||
a = { bg = colors.black_transparant, fg = colors.green1 },
|
||||
b = { bg = colors.black_transparant, fg = colors.white },
|
||||
},
|
||||
inactive = {
|
||||
a = { fg = colors.white, bg = colors.black_transparant },
|
||||
b = { fg = colors.white, bg = colors.black_transparant },
|
||||
c = { fg = colors.black, bg = colors.black_transparant },
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -98,6 +98,7 @@ M.roundedall = function(colorscheme)
|
|||
extensions = {},
|
||||
}
|
||||
end
|
||||
|
||||
M.triangle = function(colorscheme)
|
||||
local mode = component.mode_triangle
|
||||
return {
|
||||
|
@ -133,6 +134,41 @@ M.triangle = function(colorscheme)
|
|||
}
|
||||
end
|
||||
|
||||
M.parallelogram = function(colorscheme)
|
||||
local mode = component.mode_parallelogram
|
||||
return {
|
||||
options = {
|
||||
theme = colorscheme,
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
disabled_filetypes = M.filetype,
|
||||
always_divide_middle = true,
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {
|
||||
mode,
|
||||
},
|
||||
lualine_b = { get_branch },
|
||||
lualine_c = { diff, lsp_info, lsp_progress },
|
||||
lualine_x = { diagnostics, spaces, treesitter, "filetype" },
|
||||
lualine_y = { "progress" },
|
||||
lualine_z = {
|
||||
{ "location", separator = { right = " ", left = "" }, padding = 1 },
|
||||
},
|
||||
},
|
||||
inactive_sections = {
|
||||
lualine_a = { "filename" },
|
||||
lualine_b = {},
|
||||
lualine_c = {},
|
||||
lualine_x = {},
|
||||
lualine_y = {},
|
||||
lualine_z = { "location" },
|
||||
},
|
||||
tabline = {},
|
||||
extensions = {},
|
||||
}
|
||||
end
|
||||
|
||||
M.square = function(colorscheme)
|
||||
local mode = component.mode_square
|
||||
return {
|
||||
|
@ -152,7 +188,7 @@ M.square = function(colorscheme)
|
|||
lualine_x = { diagnostics, spaces, treesitter, "filetype" },
|
||||
lualine_y = { "progress" },
|
||||
lualine_z = {
|
||||
{ "location", separator = { right = "" }, padding = 1 },
|
||||
{ "location", separator = { right = " " }, padding = 1 },
|
||||
},
|
||||
},
|
||||
inactive_sections = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue