|
@@ -17,31 +17,32 @@ return {
|
|
function()
|
|
function()
|
|
return " "
|
|
return " "
|
|
end,
|
|
end,
|
|
- left_padding = 0,
|
|
|
|
- right_padding = 0,
|
|
|
|
|
|
+ padding = { left = 0, right = 0 },
|
|
color = {},
|
|
color = {},
|
|
- condition = nil,
|
|
|
|
|
|
+ cond = nil,
|
|
},
|
|
},
|
|
branch = {
|
|
branch = {
|
|
"b:gitsigns_head",
|
|
"b:gitsigns_head",
|
|
icon = " ",
|
|
icon = " ",
|
|
color = { gui = "bold" },
|
|
color = { gui = "bold" },
|
|
- condition = conditions.hide_in_width,
|
|
|
|
|
|
+ cond = conditions.hide_in_width,
|
|
},
|
|
},
|
|
filename = {
|
|
filename = {
|
|
"filename",
|
|
"filename",
|
|
color = {},
|
|
color = {},
|
|
- condition = nil,
|
|
|
|
|
|
+ cond = nil,
|
|
},
|
|
},
|
|
diff = {
|
|
diff = {
|
|
"diff",
|
|
"diff",
|
|
source = diff_source,
|
|
source = diff_source,
|
|
symbols = { added = " ", modified = "柳", removed = " " },
|
|
symbols = { added = " ", modified = "柳", removed = " " },
|
|
- color_added = { fg = colors.green },
|
|
|
|
- color_modified = { fg = colors.yellow },
|
|
|
|
- color_removed = { fg = colors.red },
|
|
|
|
|
|
+ diff_color = {
|
|
|
|
+ added = { fg = colors.green },
|
|
|
|
+ modified = { fg = colors.yellow },
|
|
|
|
+ removed = { fg = colors.red },
|
|
|
|
+ },
|
|
color = {},
|
|
color = {},
|
|
- condition = nil,
|
|
|
|
|
|
+ cond = nil,
|
|
},
|
|
},
|
|
python_env = {
|
|
python_env = {
|
|
function()
|
|
function()
|
|
@@ -60,14 +61,14 @@ return {
|
|
return ""
|
|
return ""
|
|
end,
|
|
end,
|
|
color = { fg = colors.green },
|
|
color = { fg = colors.green },
|
|
- condition = conditions.hide_in_width,
|
|
|
|
|
|
+ cond = conditions.hide_in_width,
|
|
},
|
|
},
|
|
diagnostics = {
|
|
diagnostics = {
|
|
"diagnostics",
|
|
"diagnostics",
|
|
sources = { "nvim_lsp" },
|
|
sources = { "nvim_lsp" },
|
|
symbols = { error = " ", warn = " ", info = " ", hint = " " },
|
|
symbols = { error = " ", warn = " ", info = " ", hint = " " },
|
|
color = {},
|
|
color = {},
|
|
- condition = conditions.hide_in_width,
|
|
|
|
|
|
+ cond = conditions.hide_in_width,
|
|
},
|
|
},
|
|
treesitter = {
|
|
treesitter = {
|
|
function()
|
|
function()
|
|
@@ -78,7 +79,7 @@ return {
|
|
return ""
|
|
return ""
|
|
end,
|
|
end,
|
|
color = { fg = colors.green },
|
|
color = { fg = colors.green },
|
|
- condition = conditions.hide_in_width,
|
|
|
|
|
|
+ cond = conditions.hide_in_width,
|
|
},
|
|
},
|
|
lsp = {
|
|
lsp = {
|
|
function(msg)
|
|
function(msg)
|
|
@@ -118,10 +119,10 @@ return {
|
|
end,
|
|
end,
|
|
icon = " ",
|
|
icon = " ",
|
|
color = { gui = "bold" },
|
|
color = { gui = "bold" },
|
|
- condition = conditions.hide_in_width,
|
|
|
|
|
|
+ cond = conditions.hide_in_width,
|
|
},
|
|
},
|
|
- location = { "location", condition = conditions.hide_in_width, color = {} },
|
|
|
|
- progress = { "progress", condition = conditions.hide_in_width, color = {} },
|
|
|
|
|
|
+ location = { "location", cond = conditions.hide_in_width, color = {} },
|
|
|
|
+ progress = { "progress", cond = conditions.hide_in_width, color = {} },
|
|
spaces = {
|
|
spaces = {
|
|
function()
|
|
function()
|
|
local label = "Spaces: "
|
|
local label = "Spaces: "
|
|
@@ -130,16 +131,16 @@ return {
|
|
end
|
|
end
|
|
return label .. vim.api.nvim_buf_get_option(0, "shiftwidth") .. " "
|
|
return label .. vim.api.nvim_buf_get_option(0, "shiftwidth") .. " "
|
|
end,
|
|
end,
|
|
- condition = conditions.hide_in_width,
|
|
|
|
|
|
+ cond = conditions.hide_in_width,
|
|
color = {},
|
|
color = {},
|
|
},
|
|
},
|
|
encoding = {
|
|
encoding = {
|
|
"o:encoding",
|
|
"o:encoding",
|
|
- upper = true,
|
|
|
|
|
|
+ fmt = string.upper,
|
|
color = {},
|
|
color = {},
|
|
- condition = conditions.hide_in_width,
|
|
|
|
|
|
+ cond = conditions.hide_in_width,
|
|
},
|
|
},
|
|
- filetype = { "filetype", condition = conditions.hide_in_width, color = {} },
|
|
|
|
|
|
+ filetype = { "filetype", cond = conditions.hide_in_width, color = {} },
|
|
scrollbar = {
|
|
scrollbar = {
|
|
function()
|
|
function()
|
|
local current_line = vim.fn.line "."
|
|
local current_line = vim.fn.line "."
|
|
@@ -149,9 +150,8 @@ return {
|
|
local index = math.ceil(line_ratio * #chars)
|
|
local index = math.ceil(line_ratio * #chars)
|
|
return chars[index]
|
|
return chars[index]
|
|
end,
|
|
end,
|
|
- left_padding = 0,
|
|
|
|
- right_padding = 0,
|
|
|
|
|
|
+ padding = { left = 0, right = 0 },
|
|
color = { fg = colors.yellow, bg = colors.bg },
|
|
color = { fg = colors.yellow, bg = colors.bg },
|
|
- condition = nil,
|
|
|
|
|
|
+ cond = nil,
|
|
},
|
|
},
|
|
}
|
|
}
|