Skip to content

BUG: Various keybinds using "d" not working if I toggle debugmaster #19

@Napam

Description

@Napam

Did you check docs and existing issues?

  • I have read all the docs.
  • I have searched the existing issues.

Neovim version (nvim -v)

0.11.4

Operating system/version

macOS Tahoe 26.0.1

Describe the bug

mini-surround not working after toggling

I am using 3d144b9

I use echasnovski/mini.surround

And I have set it to have the same bindings as tpope's vim-surround, e.g.

ds": deletes surrounding quotes

If I toggle debugmaster once, the ds does not seem to register, like it is as if it isn't set to anything. So if I type ds", it is basically the same as ", and I just open up the registers ui.

I did try to isolate if it was something with the binding of ds" itself, so I tried disabling mini.surround and then just set ds" to dd, and then it worked fine. So it is something specifically with how mini.surround behaves with debugmaster.

I also tried tpope/vim-surround, and it does not have the same issue.

I also tried using nvim-mini/mini.surround (which should be that same), and the issue persists

This is arguably not the fault of debugmaster, but at least you are now aware of it.

Steps To Reproduce

  1. Have the mini.surround plugin and set it to same keymaps as tpope's vim-surround
    {
      "echasnovski/mini.surround",
      version = "*",
      opts = {
        mappings = {
          add = "S",      -- Add surrounding in Normal and Visual modes
          delete = "ds",  -- Delete surrounding
          replace = "cs", -- Replace surrounding
        },
      },
    }
  2. Open and close debugmaster
  3. Try to do ds", it is basically non existent
Expected Behavior

ds" should work the same as before

nvim-treesitter-textobjects not working

Example nvim-treesitter-textobject config:

      textobjects = {
        select = {
          enable = true,
          lookahead = true,
          keymaps = {
            ["af"] = "@function.outer",
            ["if"] = "@function.inner",
            ["al"] = "@loop.outer",
            ["il"] = "@loop.inner",
            ["ac"] = "@class.outer",
            ["ic"] = "@class.inner",
            ["ai"] = "@conditional.outer",
            ["ii"] = "@conditional.inner",
            ["ak"] = "@comment.outer",
            ["ik"] = "@comment.inner",
            ["aj"] = { query = "@cell", desc = "Select cell" },
            ["ij"] = { query = "@cellcontent", desc = "Select cell content" },
          },
        },
      },

Pretty much same as over, but for nvim-treesitter-textobjects as well. E.g. daf stops working after toggling debugmaster

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions