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"; + }; +}