nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

[BUG] plugins.leap: safeLabels = [] does not disable auto-jump

Open fin444 opened this issue 8 months ago • 12 comments

Field Description
Plugin leap
Nixpkgs unstable e8057b6 (June 5)
Home Manager N/A

  • [X] I have read the FAQ and my bug is not listed there.

Description

According to the documentation, setting plugins.leap.safeLabels = [] should disable auto-jump, however it does not.

Minimal, Reproducible Example (MRE)

programs.nixvim = {
  enable = true;
  plugins.leap = {
    enable = true;
    safeLabels = [];
  };
};

Working Example of Auto-Jump Disabled

programs.nixvim = {
  enable = true;
  extraPlugins = [ pkgs.vimPlugins.leap-nvim ];
  extraConfigLua = ''
    require("leap").add_default_mappings()
    require("leap").opts.safe_labels = {}
  '';
};

fin444 avatar Jun 14 '24 19:06 fin444