mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-25 06:19:10 +00:00
nixvim/plugins/lush-nvim: properly apply the Lush spec
This commit is contained in:
parent
249edc0508
commit
f00ff0f06f
@ -40,14 +40,20 @@ let
|
|||||||
${cfg.extraConfigLua}
|
${cfg.extraConfigLua}
|
||||||
${theme.extraConfigLua}
|
${theme.extraConfigLua}
|
||||||
|
|
||||||
local theme = lush(
|
vim.g.colors_name = '${name}'
|
||||||
function(injected_functions)
|
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
|
local sym = injected_functions.sym
|
||||||
return { ${lib.concatStringsSep "," highlightList} }
|
return { ${lib.concatStringsSep "," highlightList} }
|
||||||
end
|
end)
|
||||||
)
|
|
||||||
|
|
||||||
return theme
|
-- We then apply the theme.
|
||||||
|
lush(spec)
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user