2023-02-03 21:20:20 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
|
|
|
with builtins; let
|
|
|
|
cfg = config.vim.notify.nvim-notify;
|
|
|
|
in {
|
|
|
|
options.vim.notify.nvim-notify = {
|
2023-02-03 22:01:30 +00:00
|
|
|
enable = mkEnableOption "Enable nvim-notify plugin";
|
2023-02-03 21:20:20 +00:00
|
|
|
};
|
|
|
|
|
2023-02-03 22:01:30 +00:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
vim.startPlugins = ["nvim-notify"];
|
|
|
|
|
|
|
|
vim.luaConfigRC.nvim-notify = nvim.dag.entryAnywhere ''
|
|
|
|
require('notify').setup {
|
|
|
|
stages = 'fade_in_slide_out',
|
2023-02-05 13:15:24 +00:00
|
|
|
timeout = 1000,
|
|
|
|
background_colour = '#000000',
|
2023-02-03 22:01:30 +00:00
|
|
|
position = 'top_right',
|
|
|
|
icons = {
|
|
|
|
ERROR = '',
|
|
|
|
WARN = '',
|
|
|
|
INFO = '',
|
|
|
|
DEBUG = '',
|
|
|
|
TRACE = '',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
2023-02-03 21:20:20 +00:00
|
|
|
}
|