neovim: Inherit scheme instead of slug from stylix

Fixes an issue where importing the path directly changed the slug name
in stylix.
This commit is contained in:
Donovan Glover 2024-06-20 22:31:35 -04:00
parent 9bd004c3a8
commit 3b25740fb1
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,7 +1,7 @@
{ pkgs, config, ... }:
let
inherit (config.lib.stylix.scheme) slug;
inherit (config.lib.stylix.scheme) scheme;
inherit (pkgs) callPackage;
base16-nvim = callPackage ../packages/base16-nvim.nix { };
@ -325,7 +325,7 @@ in
{
plugin = base16-nvim;
type = "lua";
config = "vim.cmd('colorscheme base16-${slug}')";
config = "vim.cmd('colorscheme base16-${scheme}')";
}
{
plugin = lualine-nvim;