mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref(nvim): redid plugin config system
This commit is contained in:
parent
d5406b8487
commit
56336c8e5e
14 changed files with 16 additions and 0 deletions
|
|
@ -1,70 +0,0 @@
|
|||
local function diagnostic_message()
|
||||
local row, _ = unpack(vim.api.nvim_win_get_cursor(0))
|
||||
local ds = vim.diagnostic.get(0, { lnum = row - 1 })
|
||||
if #ds >= 1 then
|
||||
return ds[1].message:gsub("%%", "%%%%");
|
||||
else
|
||||
return ""
|
||||
end
|
||||
end
|
||||
|
||||
local grey = {
|
||||
a = { bg = "#e4e4e5" },
|
||||
b = { bg = "#e4e4e5" },
|
||||
c = { bg = "#e4e4e5" },
|
||||
x = { bg = "#e4e4e5" },
|
||||
y = { bg = "#e4e4e5" },
|
||||
z = { bg = "#e4e4e5" },
|
||||
}
|
||||
|
||||
local curry_theme = {
|
||||
normal = grey,
|
||||
insert = grey,
|
||||
visual = grey,
|
||||
replace = grey,
|
||||
inactive = grey,
|
||||
}
|
||||
|
||||
|
||||
local sections = {
|
||||
lualine_a = {},
|
||||
lualine_b = {
|
||||
{
|
||||
"diagnostics",
|
||||
colored = true,
|
||||
symbols = { error = "E", warn = "W", info = "·", hint = "H" },
|
||||
},
|
||||
diagnostic_message,
|
||||
},
|
||||
lualine_c = { "navic" },
|
||||
lualine_x = {},
|
||||
lualine_y = {},
|
||||
lualine_z = { "progress", "branch" },
|
||||
}
|
||||
|
||||
require "lualine".setup {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = curry_theme,
|
||||
component_separators = {},
|
||||
section_separators = {},
|
||||
disabled_filetypes = {
|
||||
statusline = { "fugitive" },
|
||||
winbar = { "fugitive" },
|
||||
},
|
||||
ignore_focus = {},
|
||||
always_divide_middle = true,
|
||||
globalstatus = false,
|
||||
refresh = {
|
||||
statusline = 1000,
|
||||
tabline = 1000,
|
||||
winbar = 1000,
|
||||
},
|
||||
},
|
||||
sections = sections,
|
||||
inactive_sections = sections,
|
||||
winbar = {},
|
||||
inactive_winbar = {},
|
||||
tabline = {},
|
||||
extensions = {},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue