mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/whitespace: init module
This commit is contained in:
parent
e656464da4
commit
687b57edb7
2 changed files with 51 additions and 0 deletions
29
plugins/by-name/whitespace/default.nix
Normal file
29
plugins/by-name/whitespace/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "whitespace";
|
||||||
|
packPathName = "whitespace.nvim";
|
||||||
|
moduleName = "whitespace-nvim";
|
||||||
|
package = "whitespace-nvim";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.khaneliman ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
ignored_filetypes = [
|
||||||
|
"Avante"
|
||||||
|
"AvanteInput"
|
||||||
|
"TelescopePrompt"
|
||||||
|
"Trouble"
|
||||||
|
"blink-cmp-documentation"
|
||||||
|
"blink-cmp-menu"
|
||||||
|
"blink-cmp-signature"
|
||||||
|
"checkhealth"
|
||||||
|
"copilot-chat"
|
||||||
|
"dashboard"
|
||||||
|
"fzf"
|
||||||
|
"help"
|
||||||
|
"ministarter"
|
||||||
|
"snacks_dashboard"
|
||||||
|
];
|
||||||
|
return_cursor = false;
|
||||||
|
};
|
||||||
|
}
|
22
tests/test-sources/plugins/by-name/whitespace/default.nix
Normal file
22
tests/test-sources/plugins/by-name/whitespace/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.whitespace.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.whitespace = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
highlight = "DiffDelete";
|
||||||
|
ignored_filetypes = [
|
||||||
|
"TelescopePrompt"
|
||||||
|
"Trouble"
|
||||||
|
"help"
|
||||||
|
"dashboard"
|
||||||
|
];
|
||||||
|
ignore_terminal = true;
|
||||||
|
return_cursor = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue