From 3befd5d693a2669dc7d2086b57298838ff71f24b Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Sat, 1 Jun 2024 21:05:16 +0200 Subject: [PATCH] vim: interface colorscheme (#401) --- modules/vim/hm.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/modules/vim/hm.nix b/modules/vim/hm.nix index b67211d9..0cfd3f22 100644 --- a/modules/vim/hm.nix +++ b/modules/vim/hm.nix @@ -23,10 +23,30 @@ let fonts = config.stylix.fonts; in { plugins = [ themePlugin ]; - extraConfig = '' + extraConfig = with config.lib.stylix.colors.withHashtag; '' set termguicolors colorscheme base16-stylix unlet g:colors_name + + let g:stylix_colors = { + \ '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}', + \ } + set guifont=${escape [" "] fonts.monospace.name}:h${toString fonts.sizes.terminal} ''; };