mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/whitespace: init module
This commit is contained in:
parent
1158bb13f2
commit
324801b226
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