mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 10:59:49 +01:00
nvim-notify: fix some stuff
This commit is contained in:
parent
99a4eafa34
commit
5d898da816
2 changed files with 5 additions and 13 deletions
|
@ -14,17 +14,9 @@ in {
|
||||||
startPlugins = ["nvim-notify"];
|
startPlugins = ["nvim-notify"];
|
||||||
|
|
||||||
pluginRC.nvim-notify = entryAnywhere ''
|
pluginRC.nvim-notify = entryAnywhere ''
|
||||||
require('notify').setup(${toLuaObject cfg.setupOpts})
|
local notify = require("notify")
|
||||||
|
notify.setup(${toLuaObject cfg.setupOpts})
|
||||||
-- required to fix offset_encoding errors
|
vim.notify = notify
|
||||||
local notify = vim.notify
|
|
||||||
vim.notify = function(msg, ...)
|
|
||||||
if msg:match("warning: multiple different client offset_encodings") then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
notify(msg, ...)
|
|
||||||
end
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,7 +28,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
stages = mkOption {
|
stages = mkOption {
|
||||||
type = enum ["fade_in_slide_out" "fade_in" "slide_out" "none"];
|
type = enum ["fade_in_slide_out" "fade" "slide" "static"];
|
||||||
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 = "#000000";
|
default = "NotifyBackground";
|
||||||
description = "The background colour of the notification";
|
description = "The background colour of the notification";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue