11.stylix/modules/neovim/neovide.nix
NAHO 16df6b8448
treewide: rename mkTarget's configElements and extraOptions options
Rename mkTarget's 'configElements' argument to 'config' and
'extraOptions' to 'options' to provide a more transparent interface with
the underlying Nixpkgs module system.
2025-12-10 14:48:20 +01:00

27 lines
552 B
Nix

mkTarget:
{ lib, config, ... }:
mkTarget {
name = "neovide";
humanName = "Neovide";
config = [
(
{ fonts }:
{
programs.neovide.settings.font = {
normal = [ fonts.monospace.name ];
size = fonts.sizes.terminal;
};
}
)
(
{ opacity }:
{
programs.neovim.extraLuaConfig = lib.mkIf config.programs.neovide.enable ''
if vim.g.neovide then
vim.g.neovide_normal_opacity = ${toString opacity.terminal}
end
'';
}
)
];
}