Skip to content

[BUG] treesitter-textobjects settings.keymaps 25.11 regression #4108

@malicean

Description

@malicean

Plugin

treesitter-textobjects

Nixpkgs Release

other

Home Manager Release

other

I have read the FAQ

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

Description

Hello,

Since migrating from 25.05 to the 25.11 release, treesitter-textobjects.settings.keymaps has not been taking effect. I previously used keybinds like daf to delete @function.outer, cic for change @class.inner, etc but these are no longer applying. Notably, keybinds for settings.move and settings.swap still apply. This applies for multiple languages (Rust & Nix tested).

I have provided a minimal example, but you can also run my standalone Nixvim configuration before and after regression, should you like. Both versions fall within 800-900 MiB.

  • 25.05
  • 25.11

Then to observe the regression with the configurations:

  1. Run one configuration
  2. Open a new buffer: :enew
  3. Set lang to Nix: :setf nix
  4. Write a simple function: x: x + 1
  5. Observe the presence of cif (change inner function) and other textobject keybinds in 25.05 version, but their absence in the 25.11 version

Minimal, Reproducible Example (MRE)

plugins.treesitter-textobjects = {
  enable = true;
  settings = {
    enable = true;
    keymaps = {
      "if" = "@function.inner";
    };
  };
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions