feat: configure notify-nvim and complete setup

This commit is contained in:
NotAShelf 2023-02-04 01:01:30 +03:00
parent 463e167eff
commit 7c5133efab
No known key found for this signature in database
GPG Key ID: 5B5C8895F28445F1
2 changed files with 20 additions and 10 deletions

View File

@ -9,15 +9,25 @@ with builtins; let
cfg = config.vim.notify.nvim-notify;
in {
options.vim.notify.nvim-notify = {
enable = mkOption {
type = types.bool;
description = "Enable animated notifications";
};
enable = mkEnableOption "Enable nvim-notify plugin";
};
config =
mkIf cfg.enable
{
vim.startPlugins = ["nvim-notify"];
};
config = mkIf cfg.enable {
vim.startPlugins = ["nvim-notify"];
vim.luaConfigRC.nvim-notify = nvim.dag.entryAnywhere ''
require('notify').setup {
stages = 'fade_in_slide_out',
timeout = 5000,
position = 'top_right',
icons = {
ERROR = '',
WARN = '',
INFO = '',
DEBUG = '',
TRACE = '',
},
}
'';
};
}

View File

@ -166,7 +166,7 @@ in {
}
${
if cfg.smoothScroll.enable
then "require('cinnamon').setup()" 4
then "require('cinnamon').setup()"
else ""
}
'';