neovim: Fix capital scheme names breaking base16-nvim

This commit is contained in:
Donovan Glover 2024-07-06 17:57:06 -04:00
parent 5a5a522a70
commit aa0ee9330c
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

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