Skip to content

Commit

Permalink
nvim-notify: fix some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
diniamo committed Dec 20, 2024
1 parent 99a4eaf commit 5d898da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
14 changes: 3 additions & 11 deletions modules/plugins/ui/notifications/nvim-notify/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,9 @@ in {
startPlugins = ["nvim-notify"];

pluginRC.nvim-notify = entryAnywhere ''
require('notify').setup(${toLuaObject cfg.setupOpts})
-- 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
local notify = require("notify")
notify.setup(${toLuaObject cfg.setupOpts})
vim.notify = notify
'';
};
};
Expand Down
4 changes: 2 additions & 2 deletions modules/plugins/ui/notifications/nvim-notify/nvim-notify.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ in {
};

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";
description = "The stages of the notification";
};
Expand All @@ -41,7 +41,7 @@ in {

background_colour = mkOption {
type = str;
default = "#000000";
default = "NotifyBackground";
description = "The background colour of the notification";
};

Expand Down

0 comments on commit 5d898da

Please sign in to comment.