mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 01:08:53 +02:00
add: overide lualine config
This commit is contained in:
parent
8cab416b15
commit
b7c4310614
4 changed files with 20 additions and 57 deletions
|
@ -118,66 +118,28 @@ return {
|
|||
local mode = {
|
||||
"mode",
|
||||
padding = 1,
|
||||
separator = { left = "", right = "" },
|
||||
right_padding = 3,
|
||||
separator = { left = "" },
|
||||
-- right_padding = 3,
|
||||
fmt = function(str)
|
||||
return " " .. str
|
||||
end,
|
||||
}
|
||||
|
||||
-- stylua: ignore
|
||||
local colors = {
|
||||
blue = '#9ece6a',
|
||||
cyan = '#bb9af7',
|
||||
black = '#1a1b26',
|
||||
black_transparant = '#1a1b2600',
|
||||
white = '#c6c6c6',
|
||||
red = "#ff757f",
|
||||
skyblue = '#7aa2f7',
|
||||
grey = '#3b4261',
|
||||
yellow = "#ffc777",
|
||||
fg_gutter = "#3b4261",
|
||||
green1 = "#4fd6be",
|
||||
}
|
||||
|
||||
local bubbles_theme = {
|
||||
normal = {
|
||||
a = { fg = colors.black, bg = colors.skyblue },
|
||||
b = { fg = colors.white, bg = colors.grey },
|
||||
c = { fg = colors.white, bg = colors.black_transparant },
|
||||
},
|
||||
|
||||
insert = {
|
||||
a = { fg = colors.black, bg = colors.blue },
|
||||
b = { fg = colors.blue, bg = colors.grey },
|
||||
},
|
||||
visual = {
|
||||
a = { fg = colors.black, bg = colors.cyan },
|
||||
b = { fg = colors.cyan, bg = colors.grey },
|
||||
},
|
||||
replace = {
|
||||
a = { bg = colors.red, fg = colors.black },
|
||||
b = { bg = colors.fg_gutter, fg = colors.red },
|
||||
},
|
||||
command = {
|
||||
a = { bg = colors.yellow, fg = colors.black },
|
||||
b = { bg = colors.fg_gutter, fg = colors.yellow },
|
||||
},
|
||||
terminal = {
|
||||
a = { bg = colors.green1, fg = colors.black },
|
||||
b = { bg = colors.fg_gutter, fg = colors.green1 },
|
||||
},
|
||||
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 },
|
||||
},
|
||||
local branch = {
|
||||
"branch",
|
||||
padding = 1,
|
||||
}
|
||||
|
||||
local get_branch = function()
|
||||
if vim.b.gitsigns_head ~= nil then
|
||||
return " " .. vim.b.gitsigns_head
|
||||
else
|
||||
return " " .. vim.fn.fnamemodify("null", ":t")
|
||||
end
|
||||
end
|
||||
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
theme = bubbles_theme,
|
||||
-- component_separators = "|",
|
||||
theme = "auto",
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
disabled_filetypes = {
|
||||
|
@ -199,13 +161,12 @@ return {
|
|||
lualine_a = {
|
||||
mode,
|
||||
},
|
||||
-- lualine_b = { "filename", "branch" },
|
||||
lualine_b = { "branch" },
|
||||
lualine_b = { get_branch },
|
||||
lualine_c = { lsp_info, diagnostics },
|
||||
lualine_x = { diff, spaces, "filetype" },
|
||||
lualine_y = { "progress" },
|
||||
lualine_z = {
|
||||
{ "location", separator = { left = "", right = "" }, left_padding = 3 },
|
||||
{ "location", separator = { right = "" }, padding = 1 },
|
||||
},
|
||||
},
|
||||
inactive_sections = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue