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; cfg = config.vim.notify.nvim-notify;
in { in {
options.vim.notify.nvim-notify = { options.vim.notify.nvim-notify = {
enable = mkOption { enable = mkEnableOption "Enable nvim-notify plugin";
type = types.bool;
description = "Enable animated notifications";
};
}; };
config = config = mkIf cfg.enable {
mkIf cfg.enable
{
vim.startPlugins = ["nvim-notify"]; 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 if cfg.smoothScroll.enable
then "require('cinnamon').setup()" 4 then "require('cinnamon').setup()"
else "" else ""
} }
''; '';