From caac3e5af4cbc686e6f5e9e985b3976e717848bc Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 2 Feb 2023 00:00:29 +0300 Subject: [PATCH] feat: configure minimap.vim --- modules/minimap/default.nix | 10 ++++++++++ modules/minimap/minimap-vim.nix | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 modules/minimap/default.nix create mode 100644 modules/minimap/minimap-vim.nix diff --git a/modules/minimap/default.nix b/modules/minimap/default.nix new file mode 100644 index 0000000..0c6ef4a --- /dev/null +++ b/modules/minimap/default.nix @@ -0,0 +1,10 @@ +{ + pkgs, + lib, + config, + ... +}: { + imports = [ + ./minimap-vim.nix + ]; +} diff --git a/modules/minimap/minimap-vim.nix b/modules/minimap/minimap-vim.nix new file mode 100644 index 0000000..210c98e --- /dev/null +++ b/modules/minimap/minimap-vim.nix @@ -0,0 +1,19 @@ +{ + pkgs, + config, + lib, + ... +}: +with lib; +with builtins; let + cfg = config.vim.minimap.minimap-vim; +in { + options.vim.minimap.minimap-vim = { + enable = mkEnableOption "Enable minimap-vim plugin"; + }; + + config = mkIf cfg.enable { + # vim.startPlugins = ["minimap-vim"]; + # TODO: figure out a way to import the code-minimap package from nixpkgs + }; +}