16 Commits

Author SHA1 Message Date
hrsh7th cbddb059b5 Add snippet indicator (#759) 2020-04-19 10:14:38 -07:00
hrsh7th 2de8f4d479 Compute overflow information in completion (#739)
* Fix completion for overflowinfo

* Use complete start position to compute offset

* Fix test
2020-03-05 23:22:53 +09:00
hrsh7th c39127d85c Improve user_data format (#649) 2020-01-02 02:34:32 -08:00
hrsh7th f769a450b2 Fix CompleteDone (#637)
* Move some codes to completion.vim that related to handling CompleteDone.

* Add abort

* Fix test

* Add l: prefix to self vars

* Disable unused vars

* Restore position

* Support snippet simple case and vim-lsp-snippets

* Support g:lsp_text_edit_enabled

* Fix for v:null results

* Fix multi-byte chars

* Add document

* Fix for vim-lsp-snippets for now

* Prepare to future improvements

* More clalify line comment

* User get_user_data instead of extract_user_data

* Always use [''] pattern for accessing dictionary property

* Fix misspelling

* More strict check for completionProvider.resolveProvider

* Fix obj.key to obj['key']

* Store completed_item id to the user_data

* Fix omni tests

* Apply for the review
- Rename expand_text_simply -> simple_expand_text
- to_col -> _lsp_to_vim
- Rename user_data key

* Add example tests

* Add timeout to completionItem/resolve in completion.vim

* Fix timeout feature

* Add timeout log

* Fix documents
2020-01-02 01:08:34 -08:00
mattn abc1d83dd5 Fix textEdit completion (#572) 2019-12-23 13:59:41 -08:00
Yasuhiro Matsumoto afaba6a1f2 Revert accidentially commits pushed to master branch. 2019-12-23 01:05:56 +09:00
Yasuhiro Matsumoto 9493169b91 Fix test 2019-11-21 18:04:13 +09:00
Yasuhiro Matsumoto 64c8d091d6 Fix test 2019-11-21 17:49:44 +09:00
Thomas Faingnaert 0e811a2874 Filter completions (#391)
* Filter completed items based on typed word

* Remove logs

* Only calculate typed_word once

* Revert "Only calculate typed_word once"

This reverts commit 161c7f460e.

* Revert "Remove logs"

This reverts commit 861c70fc7c.

* Revert "Filter completed items based on typed word"

This reverts commit c450e839b4.

* Reimplement filtering completion items

* Remove s:remove_typed_part

* Fix for NeoVim

* Use 'ignorecase' to filter items

* Allow configuration of filter

* Add documentation

* Add example for typed_pattern

* Change surrounding of `/$` to indicate it is a tag

* Add g:lsp_ignorecase

* Use filterText for filtering

* Add 'contains' filter

* Fix tests

* Avoid using regex

* Fix bug in 'contains' filter

* Use completion trigger chars for typed text

* Move copy

* Update documentation

* Use textEdit starting position

* Change default typed_pattern

* Update documentation

* Fix documentation

* Add note about narrowing down completions

* Fix tests

* Make filtering note clearer

* Remove duplicate text
2019-11-14 20:08:15 -08:00
tsufeki e346c77475 Fix newline in completion popup. (#369)
* Fix newline in completion popup.
* Add test.
2019-05-12 22:34:57 -07:00
mikoto2000 185aee6ac9 Allowing empty word complete item (#378)
* Modify to allowing empty word complete item.
* Fix test.
2019-05-07 19:42:59 -07:00
mikoto2000 5c3dcc952b Fix to allow "textEdit property provide and null value". (#356) 2019-03-27 09:56:48 -07:00
mikoto2000 573b3d2b8d Added lsp#omni#get_vim_completion_item test about textEdit. 2019-03-20 05:20:23 +09:00
mikoto2000 43a9752f1b Move textEdit's user_data to user_data['vim-lsp/textEdit']. 2019-03-18 21:59:34 +09:00
mikoto2000 4e7fe37d68 Fixed test failed. 2019-02-23 19:06:26 +09:00
Ville Hakulinen 0ef9fb7f1e Proper use of kind completion item property (#305)
* Proper use of `kind` completion item property
* Add tests for `kind` completion item property
2019-02-17 09:41:00 -09:00