Skip to content

Commit

Permalink
neovim: use mini.base16 for colorscheme
Browse files Browse the repository at this point in the history
mini.base16 provides better support for various neovim plugins
  • Loading branch information
soulsoiledit committed Aug 28, 2024
1 parent 6fe4ff7 commit 1e8a1c1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions modules/neovim/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@
in
{
plugins = lib.singleton {
plugin = pkgs.vimPlugins.base16-nvim;
plugin = pkgs.vimPlugins.mini-nvim;
type = "lua";
config = lib.mkMerge [
(with config.lib.stylix.colors.withHashtag; ''
require('base16-colorscheme').setup({
base00 = '${base00}', base01 = '${base01}', base02 = '${base02}', base03 = '${base03}',
base04 = '${base04}', base05 = '${base05}', base06 = '${base06}', base07 = '${base07}',
base08 = '${base08}', base09 = '${base09}', base0A = '${base0A}', base0B = '${base0B}',
base0C = '${base0C}', base0D = '${base0D}', base0E = '${base0E}', base0F = '${base0F}'
require('mini.base16').setup({
palette = {
base00 = '${base00}', base01 = '${base01}', base02 = '${base02}', base03 = '${base03}',
base04 = '${base04}', base05 = '${base05}', base06 = '${base06}', base07 = '${base07}',
base08 = '${base08}', base09 = '${base09}', base0A = '${base0A}', base0B = '${base0B}',
base0C = '${base0C}', base0D = '${base0D}', base0E = '${base0E}', base0F = '${base0F}'
}
})
'')
(lib.mkIf cfg.transparentBackground.main ''
Expand Down

0 comments on commit 1e8a1c1

Please sign in to comment.