mirror of https://github.com/sgoudham/nvim.git
feat: added color remapping
parent
0b9e1e36fc
commit
a336b62ca7
@ -0,0 +1,22 @@
|
||||
local M = {}
|
||||
|
||||
local cs_remaps
|
||||
|
||||
function M.get_remaps()
|
||||
return cs_remaps
|
||||
end
|
||||
|
||||
function M.set_remaps(val)
|
||||
cs_remaps = val
|
||||
end
|
||||
|
||||
function M.get_color_scheme(cs)
|
||||
local remaps = M.get_remaps()
|
||||
if not (next(remaps) == nil) then
|
||||
return vim.tbl_deep_extend("force", require("catppuccino.color_schemes." .. cs), remaps)
|
||||
else
|
||||
return require("catppuccino.color_schemes." .. cs)
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
Loading…
Reference in New Issue