{
  config,
  lib,
  ...
}: {
  options.dotfiles.inputs.nixvim.programs.nixvim.plugins.spider.enable =
    lib.dotfiles.mkEnableOption;

  config =
    lib.mkIf
    config.dotfiles.inputs.nixvim.programs.nixvim.plugins.spider.enable
    {
      programs.nixvim.plugins.spider = {
        enable = true;

        keymaps = {
          motions = lib.genAttrs ["b" "e" "ge" "w"] lib.id;
          silent = true;
        };

        skipInsignificantPunctuation = false;
      };
    };
}
