Rewrite highlights to neovim api and update colors of
tiny-inline-diagnostics to match ayu color scheme.
This commit is contained in:
parent
913d98e389
commit
eea01d0812
1 changed files with 14 additions and 6 deletions
|
|
@ -9,11 +9,19 @@ return {
|
||||||
virtual_text = false,
|
virtual_text = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.cmd [[
|
local colors = require("ayu.colors")
|
||||||
highlight DiagnosticUnderlineError gui=undercurl guisp=#ff0000 " Red for error
|
colors.generate(true)
|
||||||
highlight DiagnosticUnderlineWarn gui=undercurl guisp=#ffaa00 " Yellow/Orange for warning
|
-- These are not apart of the Ayu color theme, however, I needed these
|
||||||
highlight DiagnosticUnderlineHint gui=undercurl guisp=#00ffff " Cyan for hint
|
-- colors while still fitting in with the rest
|
||||||
highlight DiagnosticUnderlineInfo gui=undercurl guisp=#0000ff " Blue for info
|
local ayu_turquoise = "#5CCFE6"
|
||||||
]]
|
local ayu_dark_blue = "#3A7BD5"
|
||||||
|
for _, highlight in ipairs({
|
||||||
|
{ "DiagnosticUnderlineError", { undercurl = true, sp = colors.error } },
|
||||||
|
{ "DiagnosticUnderlineWarn", { undercurl = true, sp = colors.warning } },
|
||||||
|
{ "DiagnosticUnderlineHint", { undercurl = true, sp = ayu_turquoise } },
|
||||||
|
{ "DiagnosticUnderlineInfo", { undercurl = true, sp = ayu_dark_blue } },
|
||||||
|
}) do
|
||||||
|
vim.api.nvim_set_hl(0, highlight[1], highlight[2])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue