mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
We used to only think of it as the plugin repo's name, but we have been needing to use it for the name of the plugin's packpath location.
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
|
name = "scope";
|
|
packPathName = "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
|
|
'';
|
|
};
|
|
};
|
|
}
|