Skip to content

Commit

Permalink
neovim: fix incorrect use of mkIf (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
danth authored Aug 6, 2024
1 parent 94aa0fc commit 5853f1a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/neovim/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
plugins = lib.singleton {
plugin = pkgs.vimPlugins.base16-nvim;
type = "lua";
config =
config = lib.mkMerge [
(with config.lib.stylix.colors.withHashtag; ''
require('base16-colorscheme').setup({
base00 = '${base00}', base01 = '${base01}', base02 = '${base02}', base03 = '${base03}',
Expand All @@ -29,13 +29,14 @@
base0C = '${base0C}', base0D = '${base0D}', base0E = '${base0E}', base0F = '${base0F}'
})
'')
+ (lib.mkIf cfg.transparentBackground.main ''
(lib.mkIf cfg.transparentBackground.main ''
vim.cmd.highlight({ "Normal", "guibg=NONE", "ctermbg=NONE" })
vim.cmd.highlight({ "NonText", "guibg=NONE", "ctermbg=NONE" })
'')
+ (lib.mkIf cfg.transparentBackground.signColumn ''
(lib.mkIf cfg.transparentBackground.signColumn ''
vim.cmd.highlight({ "SignColumn", "guibg=NONE", "ctermbg=NONE" })
'');
'')
];
};
};
};
Expand Down

0 comments on commit 5853f1a

Please sign in to comment.