mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-07 19:35:01 +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 = {
|
options.plugins.notify = {
|
||||||
enable = mkEnableOption "Enable notify";
|
enable = mkEnableOption "Enable notify";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.vimPlugins.nvim-notify;
|
||||||
|
description = "Plugin to use for notify";
|
||||||
|
};
|
||||||
|
|
||||||
stages = mkOption {
|
stages = mkOption {
|
||||||
type = types.nullOr (types.enum [ "fade_in_slide_out" "fade" "slide" "static" ]);
|
type = types.nullOr (types.enum [ "fade_in_slide_out" "fade" "slide" "static" ]);
|
||||||
description = "Animation style";
|
description = "Animation style";
|
||||||
|
@ -64,7 +70,7 @@ in
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraPlugins = [ pkgs.vimPlugins.nvim-notify ];
|
extraPlugins = [ cfg.package ];
|
||||||
extraConfigLua = ''
|
extraConfigLua = ''
|
||||||
vim.notify = require('notify');
|
vim.notify = require('notify');
|
||||||
require('notify').setup(${helpers.toLuaObject setupOptions})
|
require('notify').setup(${helpers.toLuaObject setupOptions})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue