mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 16:54:36 +02:00
plugins/scope: init
This commit is contained in:
parent
204f1aecf2
commit
9b0e2ba7e5
3 changed files with 85 additions and 0 deletions
34
tests/test-sources/plugins/utils/scope.nix
Normal file
34
tests/test-sources/plugins/utils/scope.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.scope.enable = true;
|
||||
};
|
||||
defaults = {
|
||||
plugins.scope = {
|
||||
enable = true;
|
||||
|
||||
settings.hooks = {
|
||||
pre_tab_enter = null;
|
||||
post_tab_enter = null;
|
||||
pre_tab_leave = null;
|
||||
post_tab_leave = null;
|
||||
pre_tab_close = null;
|
||||
post_tab_close = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
example = {
|
||||
plugins.scope = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
hooks = {
|
||||
pre_tab_enter.__raw = ''
|
||||
function()
|
||||
print("Example hook, about to enter tab")
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue