From e20ebe6f6804a4c0245e39aa66085f983f7254c2 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 4 Apr 2023 23:33:36 +0300 Subject: [PATCH] feat: add modes-nvim --- flake.lock | 17 +++++++++++++++++ lib/types/plugins.nix | 10 +++++++++- modules/ui/modes/modes.nix | 11 +++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 336aae8..510bd8b 100644 --- a/flake.lock +++ b/flake.lock @@ -656,6 +656,22 @@ "type": "github" } }, + "modes-nvim": { + "flake": false, + "locked": { + "lastModified": 1673274565, + "narHash": "sha256-EvJh6BLRkf+GJaKsw6pz0DR59Tha0bIkYnvqpgHgHHw=", + "owner": "mvllow", + "repo": "modes.nvim", + "rev": "d65260b8b41fdaf6ceba8d569588ecd145e6a772", + "type": "github" + }, + "original": { + "owner": "mvllow", + "repo": "modes.nvim", + "type": "github" + } + }, "naersk": { "inputs": { "nixpkgs": [ @@ -1288,6 +1304,7 @@ "lualine": "lualine", "mind-nvim": "mind-nvim", "minimap-vim": "minimap-vim", + "modes-nvim": "modes-nvim", "neovim-nightly-overlay": "neovim-nightly-overlay", "nil": "nil", "nixpkgs": "nixpkgs", diff --git a/lib/types/plugins.nix b/lib/types/plugins.nix index ca6303f..e387fdf 100644 --- a/lib/types/plugins.nix +++ b/lib/types/plugins.nix @@ -74,9 +74,17 @@ with lib; let "todo-comments" "flutter-tools" "hop-nvim" + "modes-nvim" ]; # You can either use the name of the plugin or a package. - pluginsType = with types; listOf (nullOr (either (enum availablePlugins) package)); + pluginsType = with types; + listOf ( + nullOr ( + either + (enum availablePlugins) + package + ) + ); in { pluginsOpt = { description, diff --git a/modules/ui/modes/modes.nix b/modules/ui/modes/modes.nix index e69de29..0aab957 100644 --- a/modules/ui/modes/modes.nix +++ b/modules/ui/modes/modes.nix @@ -0,0 +1,11 @@ +{ + config, + lib, + ... +}: +with lib; +with builtins; { + options.vim.ui.modes-nvim = { + enable = mkEnableOption "Enable modes.nvim UI elements"; + }; +}