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 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 = {