extern template for updating config
This commit is contained in:
@@ -6,7 +6,16 @@ end
|
||||
vim.o.background = "dark"
|
||||
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 = {
|
||||
Normal = { fg = palette.c_normal_fg, bg = palette.c_normal_bg },
|
||||
|
||||
11
lua/nvim-kolorz/init.lua
Normal file
11
lua/nvim-kolorz/init.lua
Normal 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
|
||||
Reference in New Issue
Block a user