[2024-10-04] nvim custom status bar, minor updates to

alacritty
This commit is contained in:
Andrew Conlin 2024-10-04 16:55:18 +01:00
parent 4f8211dc18
commit 5684f8c6ec
9 changed files with 169 additions and 28 deletions

View file

@ -3,18 +3,18 @@ local hex = function(n)
return string.format("#%06x", n)
end
local fg = function(n)
colour = vim.api.nvim_get_hl_by_name(n, true)
local colour = vim.api.nvim_get_hl_by_name(n, true)
return hex(colour.foreground)
end
local bg = function(n)
colour = vim.api.nvim_get_hl_by_name(n, true)
local colour = vim.api.nvim_get_hl_by_name(n, true)
return hex(colour.background)
end
return {
bg = fg("StatusLine"),
bg = bg("StatusLine"),
black = '#000000',
fg = bg("StatusLine"),
fg = fg("StatusLine"),
green = fg("DiagnosticOk"),
blue = fg("DiagnosticHint"),
orange = fg("DiagnosticWarn"),