mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-06 19:05:26 +02:00
notify: package option
This commit is contained in:
parent
3d0d5d12d3
commit
58d08b20df
1 changed files with 7 additions and 1 deletions
|
@ -12,6 +12,12 @@ in
|
|||
options.plugins.notify = {
|
||||
enable = mkEnableOption "Enable notify";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.nvim-notify;
|
||||
description = "Plugin to use for notify";
|
||||
};
|
||||
|
||||
stages = mkOption {
|
||||
type = types.nullOr (types.enum [ "fade_in_slide_out" "fade" "slide" "static" ]);
|
||||
description = "Animation style";
|
||||
|
@ -64,7 +70,7 @@ in
|
|||
};
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = [ pkgs.vimPlugins.nvim-notify ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
extraConfigLua = ''
|
||||
vim.notify = require('notify');
|
||||
require('notify').setup(${helpers.toLuaObject setupOptions})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue