Files
nvim-kolorz/colors/nvim-kolorz.lua

39 lines
1.2 KiB
Lua

vim.cmd("hi clear")
if vim.fn.exists("syntax_on") then
vim.cmd("syntax reset")
end
vim.o.background = "dark"
vim.g.colors_name = "nvim-kolorz"
local palette
local opts = require("nvim-kolorz").options
if opts.konfiz_integrated then
local home = os.getenv("HOME") or os.getenv("USERPROFILE")
local abs = home .. ".config/matugen/"
package.path = abs .. ";" .. package.path
palette = require("results.colors")
else
palette = require("nvim-kolorz.colors")
end
local highlights = {
Normal = { fg = palette.c_normal_fg, bg = palette.c_normal_bg },
Comment = { fg = palette.c_comment, italic = true },
String = { fg = palette.c_string },
Identifier = { fg = palette.c_identifier },
Function = { fg = palette.c_function },
Statement = { fg = palette.c_statement },
Keyword = { fg = palette.c_keyword },
Type = { fg = palette.c_type },
Error = { fg = palette.c_error },
Visual = { bg = palette.c_visual },
LineNr = { fg = palette.c_line_nr },
CursorLineNr = { fg = palette.c_cursor_line_nr, bold = true },
StatusLine = { fg = palette.c_status_line_fg, bg = palette.c_status_line_bg },
}
for group, opts in pairs(highlights) do
vim.api.nvim_set_hl(0, group, opts)
end