From fd86098e6fa5feb0913c91813e33c387b6a3f60e Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 4 Apr 2023 23:35:05 +0300 Subject: [PATCH] dev: move nvim-notify --- modules/notifications/nvim-notify/config.nix | 30 ------------- modules/notifications/nvim-notify/default.nix | 6 --- .../notifications/nvim-notify/nvim-notify.nix | 42 ------------------- 3 files changed, 78 deletions(-) delete mode 100644 modules/notifications/nvim-notify/config.nix delete mode 100644 modules/notifications/nvim-notify/default.nix delete mode 100644 modules/notifications/nvim-notify/nvim-notify.nix diff --git a/modules/notifications/nvim-notify/config.nix b/modules/notifications/nvim-notify/config.nix deleted file mode 100644 index 3c4b573d..00000000 --- a/modules/notifications/nvim-notify/config.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ - config, - lib, - ... -}: -with lib; -with builtins; let - cfg = config.vim.notify.nvim-notify; -in { - config = mkIf cfg.enable { - vim.startPlugins = ["nvim-notify"]; - - vim.luaConfigRC.nvim-notify = nvim.dag.entryAnywhere '' - require('notify').setup { - stages = "${cfg.stages}", - timeout = ${toString cfg.timeout}, - background_colour = "${cfg.background_colour}", - position = "${cfg.position}", - icons = { - ERROR = "${cfg.icons.ERROR}", - WARN = "${cfg.icons.WARN}", - INFO = "${cfg.icons.INFO}", - DEBUG = "${cfg.icons.DEBUG}", - TRACE = "${cfg.icons.TRACE}", - }, - - } - ''; - }; -} diff --git a/modules/notifications/nvim-notify/default.nix b/modules/notifications/nvim-notify/default.nix deleted file mode 100644 index 0d4c39d2..00000000 --- a/modules/notifications/nvim-notify/default.nix +++ /dev/null @@ -1,6 +0,0 @@ -_: { - imports = [ - ./config.nix - ./nvim-notify.nix - ]; -} diff --git a/modules/notifications/nvim-notify/nvim-notify.nix b/modules/notifications/nvim-notify/nvim-notify.nix deleted file mode 100644 index d24e82db..00000000 --- a/modules/notifications/nvim-notify/nvim-notify.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ - config, - lib, - ... -}: -with lib; -with builtins; { - options.vim.notify.nvim-notify = { - enable = mkEnableOption "Enable nvim-notify plugin"; - stages = mkOption { - type = types.enum ["fade_in_slide_out" "fade_in" "slide_out" "none"]; - default = "fade_in_slide_out"; - description = "The stages of the notification"; - }; - timeout = mkOption { - type = types.int; - default = 1000; - description = "The timeout of the notification"; - }; - background_colour = mkOption { - type = types.str; - default = "#000000"; - description = "The background colour of the notification"; - }; - position = mkOption { - type = types.enum ["top_left" "top_right" "bottom_left" "bottom_right"]; - default = "top_right"; - description = "The position of the notification"; - }; - icons = mkOption { - type = types.attrsOf types.str; - default = { - ERROR = ""; - WARN = ""; - INFO = ""; - DEBUG = ""; - TRACE = ""; - }; - description = "The icons of the notification"; - }; - }; -}