nvim: include fix
This commit is contained in:
parent
259e391d49
commit
4d49b7af90
1 changed files with 10 additions and 11 deletions
|
@ -34,13 +34,13 @@ return {
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if #labels > 0 then
|
if #labels > 0 then
|
||||||
table.insert(labels, { "╱ " })
|
table.insert(labels, { "│ " })
|
||||||
end
|
end
|
||||||
return labels
|
return labels
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_diagnostic_label()
|
local function get_diagnostic_label()
|
||||||
local icons = { error = " ", warn = " ", info = " ", hint = " " }
|
local icons = { error = " ", warn = " ", info = " ", hint = " " }
|
||||||
local label = {}
|
local label = {}
|
||||||
|
|
||||||
for severity, icon in pairs(icons) do
|
for severity, icon in pairs(icons) do
|
||||||
|
@ -53,23 +53,22 @@ return {
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if #label > 0 then
|
if #label > 0 then
|
||||||
table.insert(label, { "╱ " })
|
table.insert(label, { "│ " })
|
||||||
end
|
end
|
||||||
return label
|
return label
|
||||||
end
|
end
|
||||||
|
|
||||||
local bg_color = "#242e38"
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{ "", guibg = "#0d1117", guifg = bg_color },
|
-- { "" },
|
||||||
{ " ", guifg = "#0d1117", guibg = bg_color },
|
{ " ", gui = "reverse" },
|
||||||
{ get_diagnostic_label(), guibg = bg_color },
|
{ get_diagnostic_label(), guibg = "fg", guifg = "bg" },
|
||||||
{ get_git_diff() },
|
{ get_git_diff(), gui = "reverse" },
|
||||||
{ filename .. " ", gui = "italic" },
|
{ filename, gui = "reverse" },
|
||||||
|
{ " ", gui = "reverse" },
|
||||||
|
-- { "" },
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
-- Optional: Lazy load Incline
|
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue