mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-08 09:09:49 +01:00
Compare commits
6 commits
d8cb2a7d3a
...
7ba44f8c75
Author | SHA1 | Date | |
---|---|---|---|
|
7ba44f8c75 | ||
52042f624c | |||
af31021ce4 | |||
5c69fbd951 | |||
|
5d898da816 | ||
4f61628399 |
3 changed files with 7 additions and 15 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
@ -41,7 +41,7 @@ in {
|
|||
|
||||
background_colour = mkOption {
|
||||
type = str;
|
||||
default = "#000000";
|
||||
default = "NotifyBackground";
|
||||
description = "The background colour of the notification";
|
||||
};
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.strings) concatMapStringsSep;
|
||||
inherit (lib.modules) mkIf;
|
||||
|
||||
cfg = config.vim.utility.preview.markdownPreview;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -15,7 +15,7 @@ in {
|
|||
mkdp_auto_start = cfg.autoStart;
|
||||
mkdp_auto_close = cfg.autoClose;
|
||||
mkdp_refresh_slow = cfg.lazyRefresh;
|
||||
mkdp_filetypes = [(concatMapStringsSep ", " (x: "'" + x + "'") cfg.filetypes)];
|
||||
mkdp_filetypes = cfg.filetypes;
|
||||
mkdp_command_for_global = cfg.alwaysAllowPreview;
|
||||
mkdp_open_to_the_world = cfg.broadcastServer;
|
||||
mkdp_open_ip = cfg.customIP;
|
||||
|
|
Loading…
Reference in a new issue