Modules/Neovim: Replace nvim-notify with Snacks.notify
This commit is contained in:
@ -1093,25 +1093,6 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
_notify = {
|
||||
name = "notify";
|
||||
pkg = pkgs.vimPlugins.nvim-notify;
|
||||
lazy = true;
|
||||
config = ''
|
||||
function(_, opts)
|
||||
local notify = require("notify")
|
||||
|
||||
notify.setup(opts)
|
||||
vim.notify = notify -- Make vim use notify by default
|
||||
end
|
||||
'';
|
||||
opts = {
|
||||
render = "default";
|
||||
max_width = 45; # In columns
|
||||
top_down = false;
|
||||
};
|
||||
};
|
||||
|
||||
_nui = {
|
||||
name = "nui"; # For noice
|
||||
pkg = pkgs.vimPlugins.nui-nvim;
|
||||
@ -1123,7 +1104,6 @@ in {
|
||||
pkg = pkgs.vimPlugins.noice-nvim;
|
||||
lazy = false;
|
||||
dependencies = [
|
||||
_notify
|
||||
_nui
|
||||
];
|
||||
config = mkDefaultConfig name;
|
||||
@ -1402,6 +1382,10 @@ in {
|
||||
replace_netrw = true;
|
||||
};
|
||||
|
||||
notifier = {
|
||||
enabled = true;
|
||||
};
|
||||
|
||||
picker = let
|
||||
defaultLayout = ''
|
||||
--- Use the default layout or vertical if the window is too narrow
|
||||
|
Reference in New Issue
Block a user