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 = {
|
_nui = {
|
||||||
name = "nui"; # For noice
|
name = "nui"; # For noice
|
||||||
pkg = pkgs.vimPlugins.nui-nvim;
|
pkg = pkgs.vimPlugins.nui-nvim;
|
||||||
@ -1123,7 +1104,6 @@ in {
|
|||||||
pkg = pkgs.vimPlugins.noice-nvim;
|
pkg = pkgs.vimPlugins.noice-nvim;
|
||||||
lazy = false;
|
lazy = false;
|
||||||
dependencies = [
|
dependencies = [
|
||||||
_notify
|
|
||||||
_nui
|
_nui
|
||||||
];
|
];
|
||||||
config = mkDefaultConfig name;
|
config = mkDefaultConfig name;
|
||||||
@ -1402,6 +1382,10 @@ in {
|
|||||||
replace_netrw = true;
|
replace_netrw = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
notifier = {
|
||||||
|
enabled = true;
|
||||||
|
};
|
||||||
|
|
||||||
picker = let
|
picker = let
|
||||||
defaultLayout = ''
|
defaultLayout = ''
|
||||||
--- Use the default layout or vertical if the window is too narrow
|
--- Use the default layout or vertical if the window is too narrow
|
||||||
|
Reference in New Issue
Block a user