mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-01 04:44:31 +02:00
plugins/transparent: init
This commit is contained in:
parent
8b500ef1db
commit
a5b7ff5404
3 changed files with 116 additions and 0 deletions
|
@ -107,6 +107,7 @@
|
||||||
|
|
||||||
./ui/image.nix
|
./ui/image.nix
|
||||||
./ui/noice.nix
|
./ui/noice.nix
|
||||||
|
./ui/transparent.nix
|
||||||
|
|
||||||
./utils/alpha.nix
|
./utils/alpha.nix
|
||||||
./utils/auto-save.nix
|
./utils/auto-save.nix
|
||||||
|
|
72
plugins/ui/transparent.nix
Normal file
72
plugins/ui/transparent.nix
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
helpers.neovim-plugin.mkNeovimPlugin config {
|
||||||
|
name = "transparent";
|
||||||
|
originalName = "transparent.nvim";
|
||||||
|
defaultPackage = pkgs.vimPlugins.transparent-nvim;
|
||||||
|
|
||||||
|
maintainers = [maintainers.GaetanLepage];
|
||||||
|
|
||||||
|
settingsOptions = {
|
||||||
|
groups =
|
||||||
|
helpers.defaultNullOpts.mkListOf types.str
|
||||||
|
''
|
||||||
|
[
|
||||||
|
"Normal"
|
||||||
|
"NormalNC"
|
||||||
|
"Comment"
|
||||||
|
"Constant"
|
||||||
|
"Special"
|
||||||
|
"Identifier"
|
||||||
|
"Statement"
|
||||||
|
"PreProc"
|
||||||
|
"Type"
|
||||||
|
"Underlined"
|
||||||
|
"Todo"
|
||||||
|
"String"
|
||||||
|
"Function"
|
||||||
|
"Conditional"
|
||||||
|
"Repeat"
|
||||||
|
"Operator"
|
||||||
|
"Structure"
|
||||||
|
"LineNr"
|
||||||
|
"NonText"
|
||||||
|
"SignColumn"
|
||||||
|
"CursorLine"
|
||||||
|
"CursorLineNr"
|
||||||
|
"StatusLine"
|
||||||
|
"StatusLineNC"
|
||||||
|
"EndOfBuffer"
|
||||||
|
]
|
||||||
|
''
|
||||||
|
''
|
||||||
|
The list of transparent groups.
|
||||||
|
'';
|
||||||
|
|
||||||
|
extra_groups = helpers.defaultNullOpts.mkListOf types.str "[]" ''
|
||||||
|
Additional groups that should be cleared.
|
||||||
|
'';
|
||||||
|
|
||||||
|
exclude_groups = helpers.defaultNullOpts.mkListOf types.str "[]" ''
|
||||||
|
Groups that you don't want to clear.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
extra_groups = [
|
||||||
|
"BufferLineTabClose"
|
||||||
|
"BufferLineBufferSelected"
|
||||||
|
"BufferLineFill"
|
||||||
|
"BufferLineBackground"
|
||||||
|
"BufferLineSeparator"
|
||||||
|
"BufferLineIndicatorSelected"
|
||||||
|
];
|
||||||
|
exclude_groups = [];
|
||||||
|
};
|
||||||
|
}
|
43
tests/test-sources/plugins/ui/transparent.nix
Normal file
43
tests/test-sources/plugins/ui/transparent.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.transparent.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.transparent = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
groups = [
|
||||||
|
"Normal"
|
||||||
|
"NormalNC"
|
||||||
|
"Comment"
|
||||||
|
"Constant"
|
||||||
|
"Special"
|
||||||
|
"Identifier"
|
||||||
|
"Statement"
|
||||||
|
"PreProc"
|
||||||
|
"Type"
|
||||||
|
"Underlined"
|
||||||
|
"Todo"
|
||||||
|
"String"
|
||||||
|
"Function"
|
||||||
|
"Conditional"
|
||||||
|
"Repeat"
|
||||||
|
"Operator"
|
||||||
|
"Structure"
|
||||||
|
"LineNr"
|
||||||
|
"NonText"
|
||||||
|
"SignColumn"
|
||||||
|
"CursorLine"
|
||||||
|
"CursorLineNr"
|
||||||
|
"StatusLine"
|
||||||
|
"StatusLineNC"
|
||||||
|
"EndOfBuffer"
|
||||||
|
];
|
||||||
|
extra_groups = [];
|
||||||
|
exclude_groups = [];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue