Skip to content

Luasnip - After using snippets, tab key press triggers unexpected cursor jumps #1694

@jorgealbertowork

Description

@jorgealbertowork

Before Reporting an Issue

  • I have read the kickstart.nvim README.md.

  • I have read the appropriate plugin's documentation.

  • I have searched that this issue has not been reported before.

  • By checking this, I confirm that the above steps are completed. I understand leaving this unchecked will result in this report being closed immediately.

Describe the bug

Appears to be the same one described here: #302

Although reported before in a now closed issue, I believe this has never been fixed.

After using any snippet, when I turn back to inserting text manually, using the tab key to indent code will trigger an unexpected jump to the last snippet used.

To Reproduce

  1. Use any snippet.
  2. After editing the snippet, try to insert text in a new line
  3. Use the tab key to add indentation on new line, cursor jumps unexpectedly to the last snippet location.

Desktop

  • OS: Linux Mint
  • Terminal: XFCE4-Terminal

Neovim Version

NVIM v0.11.3                                                                                                           
Build type: Release                                                                                                    
LuaJIT 2.1.1741730670  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions