mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 13:20:44 +00:00
feat: configure notify-nvim and complete setup
This commit is contained in:
parent
463e167eff
commit
7c5133efab
2 changed files with 20 additions and 10 deletions
|
@ -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 = '',
|
||||
},
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -166,7 +166,7 @@ in {
|
|||
}
|
||||
${
|
||||
if cfg.smoothScroll.enable
|
||||
then "require('cinnamon').setup()" 4
|
||||
then "require('cinnamon').setup()"
|
||||
else ""
|
||||
}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue