Compare commits

..

No commits in common. "5c69fbd951e2656ab753f60d28cdfab66091a1fa" and "99a4eafa34450fc94e43e3f0ed4df559a40f9b35" have entirely different histories.

2 changed files with 13 additions and 5 deletions

View file

@ -14,9 +14,17 @@ in {
startPlugins = ["nvim-notify"]; startPlugins = ["nvim-notify"];
pluginRC.nvim-notify = entryAnywhere '' pluginRC.nvim-notify = entryAnywhere ''
local notify = require("notify") require('notify').setup(${toLuaObject cfg.setupOpts})
notify.setup(${toLuaObject cfg.setupOpts})
vim.notify = notify -- required to fix offset_encoding errors
local notify = vim.notify
vim.notify = function(msg, ...)
if msg:match("warning: multiple different client offset_encodings") then
return
end
notify(msg, ...)
end
''; '';
}; };
}; };

View file

@ -28,7 +28,7 @@ in {
}; };
stages = mkOption { stages = mkOption {
type = enum ["fade_in_slide_out" "fade" "slide" "static"]; type = enum ["fade_in_slide_out" "fade_in" "slide_out" "none"];
default = "fade_in_slide_out"; default = "fade_in_slide_out";
description = "The stages of the notification"; description = "The stages of the notification";
}; };
@ -41,7 +41,7 @@ in {
background_colour = mkOption { background_colour = mkOption {
type = str; type = str;
default = "NotifyBackground"; default = "#000000";
description = "The background colour of the notification"; description = "The background colour of the notification";
}; };