Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Commit

Permalink
transparent background
Browse files Browse the repository at this point in the history
  • Loading branch information
siph committed May 14, 2023
1 parent bce9c12 commit 1d4d0bc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/basic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ in {
default = true;
description = "Briefly highlight yanked text";
};

transparentBackground = mkOption {
type = types.bool;
default = true;
description = "Make background transparent";
};
};

config = {
Expand Down Expand Up @@ -293,6 +299,12 @@ in {
au TextYankPost * silent! lua vim.highlight.on_yank{higroup="Search", timeout=200}
augroup END
''}
${optionalString cfg.transparentBackground ''
augroup user_colors
autocmd!
autocmd ColorScheme * highlight Normal ctermbg=NONE guibg=NONE
augroup END
''}
'';
};
}

0 comments on commit 1d4d0bc

Please sign in to comment.