machakann / vim-sandwich

Set of operators and textobjects to search/select/edit sandwiched texts.
1.44k stars 37 forks source link

sda) does not behave as explained in help #165

Open cideM opened 1 year ago

cideM commented 1 year ago

I am using the default configuration and I don't think that I have any plugins installed that would interfere with this. My plugins are:

        nvim-lspconfig
        vim-fugitive
        vim-rhubarb
        gitsigns-nvim
        vim-unimpaired
        vim-repeat
        vim-commentary
        vim-indent-object
        QFEnter
        nvim-treesitter-context
        fzf-lua
        vim-gutentags
        vim-dirvish
        leap-nvim
        vim-sandwich
        sad-vim
        copilot-vim
        vim-sayonara

        # Themes
        edge
        spacevim
        yui
        rose-pine
        everforest
        github-nvim-theme
        catppuccin-nvim

        # Syntax
        haskell-vim
        dhall-vim
        zig-vim
        Jenkinsfile-vim-syntax
        purescript-vim
        vim-js
        vim-lua
        vim-jsx-pretty
        vim-nix
        vim-terraform

        nvim-treesitter.withAllGrammars

If my cursor is inside (foo) and I type sda) it aborts the sequence when I get to a and it tries to delete any pair of a's it finds. But according to :h sandwich:

    (foo)

press `sda(` deletes the parenthesis since the default textobject |a(| assigns
the region surrounded by "(" and ")" including them.