mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
plugins/utils: move to by-name
This commit is contained in:
parent
faff32b9f1
commit
52f125679f
195 changed files with 2 additions and 102 deletions
|
@ -1,48 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
||||
name = "scope";
|
||||
originalName = "scope.nvim";
|
||||
package = "scope-nvim";
|
||||
|
||||
maintainers = [ lib.maintainers.insipx ];
|
||||
|
||||
settingsOptions = {
|
||||
hooks = {
|
||||
pre_tab_enter = lib.nixvim.defaultNullOpts.mkLuaFn null ''
|
||||
Run custom logic before entering a tab.
|
||||
'';
|
||||
|
||||
post_tab_enter = lib.nixvim.defaultNullOpts.mkLuaFn null ''
|
||||
Run custom logic after entering a tab.
|
||||
'';
|
||||
|
||||
pre_tab_leave = lib.nixvim.defaultNullOpts.mkLuaFn null ''
|
||||
Run custom logic before leaving a tab.
|
||||
'';
|
||||
post_tab_leave = lib.nixvim.defaultNullOpts.mkLuaFn null ''
|
||||
Run custom logic after leaving a tab.
|
||||
'';
|
||||
|
||||
pre_tab_close = lib.nixvim.defaultNullOpts.mkLuaFn null ''
|
||||
Run custom logic before closing a tab.
|
||||
'';
|
||||
|
||||
post_tab_close = lib.nixvim.defaultNullOpts.mkLuaFn null ''
|
||||
Run custom logic after closing a tab.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
settingsExample = {
|
||||
settings = {
|
||||
pre_tab_enter.__raw = ''
|
||||
function()
|
||||
print("about to enter tab!")
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue