mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
nixvim/plugins/lush-nvim: update to submodule for extraFiles
This commit is contained in:
parent
aeeb6a95f9
commit
2ec1eab1dc
@ -37,25 +37,27 @@ let
|
|||||||
in
|
in
|
||||||
# This is based from rktjmp/lush-template. We'll improve on things from
|
# This is based from rktjmp/lush-template. We'll improve on things from
|
||||||
# here whenever necessary.
|
# here whenever necessary.
|
||||||
lib.nameValuePair "colors/${name}.lua" ''
|
lib.nameValuePair "colors/${name}.lua" {
|
||||||
${cfg.extraConfigLua}
|
text = ''
|
||||||
${theme.extraConfigLua}
|
${cfg.extraConfigLua}
|
||||||
|
${theme.extraConfigLua}
|
||||||
|
|
||||||
vim.g.colors_name = '${name}'
|
vim.g.colors_name = '${name}'
|
||||||
vim.o.termguicolors = true
|
vim.o.termguicolors = true
|
||||||
|
|
||||||
-- This needs to be parsed twice: once to generate the Lush spec
|
-- This needs to be parsed twice: once to generate the Lush spec
|
||||||
-- and the other to actually apply the spec.
|
-- and the other to actually apply the spec.
|
||||||
--
|
--
|
||||||
-- @diagnostic disable: undefined-global
|
-- @diagnostic disable: undefined-global
|
||||||
local spec = lush(function(injected_functions)
|
local spec = lush(function(injected_functions)
|
||||||
local sym = injected_functions.sym
|
local sym = injected_functions.sym
|
||||||
return { ${lib.concatStringsSep "," highlightList} }
|
return { ${lib.concatStringsSep "," highlightList} }
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- We then apply the theme.
|
-- We then apply the theme.
|
||||||
lush(spec)
|
lush(spec)
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.colorschemes.lush = {
|
options.colorschemes.lush = {
|
||||||
|
Loading…
Reference in New Issue
Block a user