neovim configuration using rocks.nvim plugin manager
1-- stylua: ignore start
2local util_hl = function() return require("utils.highlights") end
3-- stylua: ignore end
4
5pcall(vim.cmd.colorscheme, "github_dark_default")
6
7--[[
8some good-looking colorscheems
9
10# dark-theme
11- https://github.com/sho-87/kanagawa-paper.nvim
12
13# light-theme
14- https://github.com/yorickpeterse/nvim-grey
15]]
16
17-- colorscheme callback map used from core.autocmds
18local tbl = {
19 ["github_dark_default"] = function()
20 util_hl().set("StatusLineNC", { reverse = true, inherit = "StatusLine" })
21 util_hl().set("@markup.raw", { italic = false, reverse = true })
22 util_hl().set("@markup.raw.block", { reverse = false, inherit = "@markup.raw" })
23 util_hl().set("DiagnosticLineError", { bg = util_hl().tint(util_hl().get("DiagnosticVirtualTextError", "fg"), -0.8) })
24 util_hl().set("DiagnosticLineWarn", { bg = util_hl().tint(util_hl().get("DiagnosticVirtualTextWarn", "fg"), -0.8) })
25 util_hl().set("DiagnosticLineInfo", { bg = util_hl().tint(util_hl().get("DiagnosticVirtualTextInfo", "fg"), -0.8) })
26 util_hl().set("DiagnosticLineHint", { bg = util_hl().tint(util_hl().get("DiagnosticVirtualTextHint", "fg"), -0.8) })
27 -- util_hl.set("StatusLine", { bold = true })
28 -- local sep = util_hl.tint(util_hl.get("WinBar", "fg"), -0.25)
29 -- util_hl.set("WinBar", { reverse = true })
30 -- util_hl.set("WinBarNC", { fg = sep, reverse = true })
31 -- util_hl.set("WinSeparator", { fg = sep })
32 end,
33 ["default"] = function ()
34 util_hl().set("@markup.raw", { reverse = true })
35 util_hl().set("@markup.raw.block", { reverse = false })
36 end
37}
38
39return tbl