nvim: make colors nice again
This commit is contained in:
parent
cedd8218c4
commit
7e82cad98d
2 changed files with 26 additions and 4 deletions
|
@ -131,7 +131,7 @@ end
|
|||
---@param bg ?color
|
||||
---@param styles style[]
|
||||
function M:hl(group, fg, bg, styles, opts)
|
||||
local o = opts or {};
|
||||
local o = opts or { force = true }
|
||||
|
||||
if fg ~= nil
|
||||
then
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
local M = {
|
||||
'gruvbox-community/gruvbox',
|
||||
commit = 'f150aa7',
|
||||
lazy = false,
|
||||
priority = 999,
|
||||
}
|
||||
|
@ -183,8 +182,31 @@ function M.config()
|
|||
gr:hl('Strikethrough', nil, nil, { 'strikethrough' }, {})
|
||||
gr:hl('Underlined', nil, nil, { 'underline' }, {})
|
||||
|
||||
gr:hl('@text.uri', 'bright_blue', nil, {'underline'}, {})
|
||||
gr:hl('@text.emphasis', nil, nil, {'italic'}, {})
|
||||
gr:hl('@text.uri', 'bright_blue', nil, { 'underline' }, {})
|
||||
gr:hl('@text.emphasis', nil, nil, { 'italic' }, {})
|
||||
|
||||
link('DiagnosticError', 'GruvboxRed')
|
||||
link('DiagnosticWarn', 'GruvboxYellow')
|
||||
link('DiagnosticInfo', 'GruvboxBlue')
|
||||
link('DiagnosticHint', 'GruvboxAqua')
|
||||
link('DiagnosticOk', 'GruvboxGreen')
|
||||
link('RedrawDebugClear', 'GruvboxAqua')
|
||||
link('RedrawDebugComposed', 'GruvboxGreen')
|
||||
link('RedrawDebugRecompose', 'GruvboxRed')
|
||||
link('DiagnosticFloatingError', 'DiagnosticError')
|
||||
link('DiagnosticFloatingWarn', 'DiagnosticWarn')
|
||||
link('DiagnosticFloatingInfo', 'DiagnosticInfo')
|
||||
link('DiagnosticFloatingHint', 'DiagnosticHint')
|
||||
link('DiagnosticFloatingOk', 'DiagnosticOk')
|
||||
link('DiagnosticUnderlineOk', 'GruvboxAquaUnderline')
|
||||
link('DiagnosticUnderlineError', 'GruvboxRedUnderline')
|
||||
link('DiagnosticUnderlineWarn', 'GruvboxYellowUnderline')
|
||||
link('DiagnosticUnderlineInfo', 'GruvboxBlueUnderline')
|
||||
link('DiagnosticUnderlineHint', 'GruvboxAquaUnderline')
|
||||
|
||||
gr:hl('DiagnosticDeprecated', nil, nil, { 'strikethrough' }, { sp = 'red' })
|
||||
|
||||
gr:hl('NormalFloat', 'light0_hard', 'dark1', {}, nil)
|
||||
|
||||
-- gr:hl('GitSignsAddLine', nil, 'faded_green', {})
|
||||
-- vim.fn.sign_define('GitSignsAdd', { text = '│', texthl = 'GitSignsAdd', linehl = 'GitSignsAddLine', culhl='CursorLine' })
|
||||
|
|
Loading…
Add table
Reference in a new issue