Skip to content

:Lspsaga code_action get wrong word when checking spelling with cspell_ls. #1551

@xbot

Description

@xbot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions