nixvim/plugins/lush-nvim: update to submodule for extraFiles

This commit is contained in:
Gabriel Arazas 2024-07-31 13:21:03 +08:00
parent aeeb6a95f9
commit 2ec1eab1dc
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -37,25 +37,27 @@ let
in
# This is based from rktjmp/lush-template. We'll improve on things from
# here whenever necessary.
lib.nameValuePair "colors/${name}.lua" ''
${cfg.extraConfigLua}
${theme.extraConfigLua}
lib.nameValuePair "colors/${name}.lua" {
text = ''
${cfg.extraConfigLua}
${theme.extraConfigLua}
vim.g.colors_name = '${name}'
vim.o.termguicolors = true
vim.g.colors_name = '${name}'
vim.o.termguicolors = true
-- This needs to be parsed twice: once to generate the Lush spec
-- and the other to actually apply the spec.
--
-- @diagnostic disable: undefined-global
local spec = lush(function(injected_functions)
local sym = injected_functions.sym
return { ${lib.concatStringsSep "," highlightList} }
end)
-- This needs to be parsed twice: once to generate the Lush spec
-- and the other to actually apply the spec.
--
-- @diagnostic disable: undefined-global
local spec = lush(function(injected_functions)
local sym = injected_functions.sym
return { ${lib.concatStringsSep "," highlightList} }
end)
-- We then apply the theme.
lush(spec)
'';
-- We then apply the theme.
lush(spec)
'';
};
in
{
options.colorschemes.lush = {