extern template for updating config

This commit is contained in:
2025-11-18 17:11:19 +01:00
parent c4d81ceac6
commit 6f4871d9c1
2 changed files with 21 additions and 1 deletions

View File

@@ -6,7 +6,16 @@ end
vim.o.background = "dark" vim.o.background = "dark"
vim.g.colors_name = "nvim-kolorz" vim.g.colors_name = "nvim-kolorz"
local palette = require("nvim-kolorz.colors") 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 = { local highlights = {
Normal = { fg = palette.c_normal_fg, bg = palette.c_normal_bg }, Normal = { fg = palette.c_normal_fg, bg = palette.c_normal_bg },

11
lua/nvim-kolorz/init.lua Normal file
View File

@@ -0,0 +1,11 @@
local M = {}
M.options = {
konfiz_integrated = false,
}
function M.setup(opts)
M.options = vim.tbl_deep_extend("force", M.options, opts or {})
end
return M