Skip to content

ignore_beginning works differently between ( and " #46

@xulongwu4

Description

@xulongwu4

Hi, I have a question about the ignore_beginning option. The plugin does not seem to work consistently when this option is set to false.

For example, I have the following cpp code snippet.

#include <iostream>

int main() { std::cout << "It is a test " << (1 + 2) << std::endl; }

Now if the cursor is inside the double quotes, pressing TAB will tab out. However, if the curosr is inside the parentheses (for example, right before the + sign), pressing TAB will insert a tab instead of tabbing out.

I would expect tabout works when the cursor is inside a pair of parenthese as well.

My setup (I use lazy.nvim):

{
  "abecodes/tabout.nvim",
  event = { "InsertEnter" },
  opts = {
    ignore_beginning = false,
  },
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions