plugins/illuminate: init + test (#472)

* plugins/vim-illuminate: init + test

* Fixed issue with empty test

* Apply suggestions from code review

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* Renamed from vilm-illuminate to illuminate

* Update plugins/utils/illuminate.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

---------

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
Antonín Říha 2023-07-05 14:42:12 +02:00 committed by GitHub
parent 89d0b05c9d
commit d933b78dc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 179 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{
empty = {
plugins.illuminate.enable = true;
};
example = {
plugins.illuminate = {
enable = true;
delay = 50;
providers = ["lsp"];
modesDenylist = ["n"];
modesAllowlist = ["v"];
underCursor = false;
largeFileCutoff = 10;
minCountToHighlight = 2;
filetypesDenylist = ["csharp"];
filetypesAllowlist = ["python"];
filetypeOverrides = [
{
filetype = "c";
overrides = {
delay = 10;
providers = ["treesitter"];
};
}
];
largeFileOverrides = {
delay = 20;
underCursor = true;
};
};
};
}