forked from prabirshrestha/vim-lsp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix insert text (prabirshrestha#688)
* Fix insert text When insertTextFormat==2, it should prefer insertText. But it may include placeholder. When insertTextFormat!=2, use insertText since it is plain-text. When it have textEdit, the inserted text will be modified in later, so insert only word. Otherwize, insert label since it should be what the server want to insert. * Check with valid word pattern * ":" should be invalid character * Add lsp#utils#make_valid_word * Add l: prefix * Add test * Add test * \t should be ignored Co-authored-by: hrsh7th <[email protected]>
- Loading branch information
Showing
3 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters