nvim-lua / nvim-lua/kickstart.nvim
Luasnip - After using snippets, tab key press triggers unexpected cursor jumps
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
- Use any snippet.
- After editing the snippet, try to insert text in a new line
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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