Skip to content

Commit

Permalink
neovim: Fix capital scheme names breaking base16-nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanglover committed Jul 6, 2024
1 parent 5a5a522 commit aa0ee93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions home/neovim.nix
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit aa0ee93

Please sign in to comment.