mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
neovim: Fix capital scheme names breaking base16-nvim
This commit is contained in:
parent
5a5a522a70
commit
aa0ee9330c
@ -1,8 +1,9 @@
|
||||
{ pkgs, config, ... }:
|
||||
{ pkgs, config, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (config.lib.stylix.scheme) scheme;
|
||||
inherit (pkgs) callPackage;
|
||||
inherit (lib.strings) toLower;
|
||||
|
||||
base16-nvim = callPackage ../packages/base16-nvim.nix { };
|
||||
in
|
||||
@ -325,7 +326,7 @@ in
|
||||
{
|
||||
plugin = base16-nvim;
|
||||
type = "lua";
|
||||
config = "vim.cmd('colorscheme base16-${scheme}')";
|
||||
config = "vim.cmd('colorscheme base16-${toLower scheme}')";
|
||||
}
|
||||
{
|
||||
plugin = lualine-nvim;
|
||||
|
Loading…
Reference in New Issue
Block a user