nvim-lua / nvim-lua/kickstart.nvim

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

Open
#1,694 2 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
31.5k
Forks
46.6k
Avg merge
2d 16h
Merged PRs (30d)
4

Description

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: https://github.com/nvim-lua/kickstart.nvim/pull/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  

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the kickstart.nvim README, the appropriate plugin documentation, and the referenced pull request #302. Reproduce the cursor jump on Neovim v0.11.3 using the listed steps, then verify that pressing Tab after editing a snippet indents a new line without returning to the previous snippet location.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.