Something went wrong. Try again.
neovim configuration using rocks.nvim plugin manager
Something went wrong. Try again.
1.8 kB · 40 lines
Lua
at main
1234567891011121314151617181920212223242526272829303132333435363738394041-- stylua: ignore startlocal util_hl = function() return require("utils.highlights") end-- stylua: ignore end
pcall(vim.cmd.colorscheme, "github_dark_default")
--[[some good-looking colorscheems
# dark-theme- https://github.com/sho-87/kanagawa-paper.nvim
# light-theme- https://github.com/yorickpeterse/nvim-grey]]
-- colorscheme callback map used from core.autocmdslocal tbl = { ["github_dark_default"] = function() util_hl().set("StatusLineNC", { reverse = true, inherit = "StatusLine" }) util_hl().set("@markup.raw", { fg = "#8b949e", italic = false, reverse = true }) -- util_hl().set("@markup.raw", { fg = "#0d1117", bg = "#8b949e", italic = false }) util_hl().set("@markup.raw.block", { reverse = false, inherit = "@markup.raw" }) util_hl().set("DiagnosticLineError", { bg = util_hl().tint(util_hl().get("DiagnosticVirtualTextError", "fg"), -0.8) }) util_hl().set("DiagnosticLineWarn", { bg = util_hl().tint(util_hl().get("DiagnosticVirtualTextWarn", "fg"), -0.8) }) util_hl().set("DiagnosticLineInfo", { bg = util_hl().tint(util_hl().get("DiagnosticVirtualTextInfo", "fg"), -0.8) }) util_hl().set("DiagnosticLineHint", { bg = util_hl().tint(util_hl().get("DiagnosticVirtualTextHint", "fg"), -0.8) }) -- util_hl.set("StatusLine", { bold = true }) -- local sep = util_hl.tint(util_hl.get("WinBar", "fg"), -0.25) -- util_hl.set("WinBar", { reverse = true }) -- util_hl.set("WinBarNC", { fg = sep, reverse = true }) -- util_hl.set("WinSeparator", { fg = sep }) end, ["default"] = function () util_hl().set("@markup.raw", { reverse = true }) util_hl().set("@markup.raw.block", { reverse = false }) end}
return tbl