nvimdev / nvimdev/lspsaga.nvim
`:Lspsaga code_action` get wrong word when checking spelling with cspell_ls.
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 3.8k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
When there is a Chinese character before the unknown English word, invoking :Lspsaga code_action won't save the right word to cspell.json. The native lsp method lua vim.lsp.buf.code_action() works well.
Steps to reproduce
Just put a Chinese character before the unknown word.
Expected behavior
Get the exact unknown word and save it to cspell.json.
Neovim version (nvim -v)
0.11.4
lspsaga commit
8efe00d
Terminal name/version
kitty 0.42.2
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 reproducing :Lspsaga code_action with a Chinese character immediately before an unknown English word, then compare its behavior with lua vim.lsp.buf.code_action(). Trace how the selected spelling word is obtained and saved to cspell.json; done means the exact unknown word is saved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100