add: lualine theme

This commit is contained in:
asep.komarudin 2024-05-23 14:15:21 +07:00
parent c33971749e
commit c575f0b93f
5 changed files with 96 additions and 5 deletions

View file

@ -129,6 +129,22 @@ return {
return icons.ui.Neovim .. " " .. str
end,
},
mode_roundedall = {
"mode",
padding = 1,
separator = { left = "", right = "" },
fmt = function(str)
return icons.ui.Neovim .. " " .. str
end,
},
mode_triangle = {
"mode",
padding = 1,
separator = { left = " ", right = "" },
fmt = function(str)
return icons.ui.Neovim .. " " .. str
end,
},
mode_square = {
"mode",

View file

@ -64,6 +64,75 @@ M.rounded = function(colorscheme)
}
end
M.roundedall = function(colorscheme)
local mode = component.mode_roundedall
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.triangle = function(colorscheme)
local mode = component.mode_triangle
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 {