Jerko Steiner
0cb432cb82
Add TypeScript autoimport support for deoplete ( #2779 )
...
* Add autoimport support for deoplete
* Fix test_deoplete_source.py
* Use callback instead of is_async for deoplete
Shuogo, the author of Deoplete, does not recommend using the `is_async`
option:
> I think is_async is not recommended. It is not so useful and broken.
> You should use callback system instead.
Link: https://github.com/Shougo/deoplete.nvim/issues/1006#issuecomment-526797857
Incidentally, the same thread mentiones an issue started by w0rp:
https://github.com/Shougo/deoplete.nvim/issues/976
The deoplete docs also say is_async is deprecated:
> is_async (Bool)
> If the gather is asynchronous, the source must set
> it to "True". A typical strategy for an asynchronous
> gather_candidates method to use this flag is to
> set is_async flag to True while results are being
> produced in the background (optionally, returning them
> as they become ready). Once background processing
> has completed, is_async flag should be set to False
> indicating that this is the last portion of the
> candidates.
>
> Note: The feature is deprecated and not recommended.
> You should use callback system by
> |deoplete#auto_complete()| instead.
Link: https://github.com/Shougo/deoplete.nvim/blob/master/doc/deoplete.txt
Co-authored-by: w0rp <w0rp@users.noreply.github.com>
2020-01-01 19:00:41 +00:00
Donnie West
5985f8bd63
Fix typo
2019-11-08 16:44:02 -06:00
Donnie West
0b5fcbad1f
Allow the user to set their own completion values
2019-11-08 16:44:00 -06:00
w0rp
9125ec8739
Merge pull request #2845 from DonnieWest/fixItemDetailsOnEmptySource
...
Fix tsserver not returning details for items with empty source
2019-10-18 15:16:54 +01:00
Donnie West
8698c44e2a
Fix tsserver not returning details for items with empty source
2019-10-17 23:26:24 -05:00
Donnie West
b27df1b169
Allow code actions to work on callback based sources
2019-10-17 23:22:31 -05:00
Jerko Steiner
f5e44415e8
Show description of autoimport action for tsserver
2019-09-20 13:11:16 +07:00
Jerko Steiner
3e8c8d3ccb
Add ALERename (tsserver & LSP), ALEOrganizeImports (tsserver) and auto import support (tsserver) ( #2709 )
...
This commit adds support for renaming symbols in tsserver and with LSP tools, and for organising imports with tsserver. Completion results for symbols that can be imported are now suggested if enabled for tsserver completion done via ALE.
2019-09-12 21:53:23 +01:00
Donnie West
5388ff1d54
Add asyncomplete.vim Support ( #2627 )
2019-08-17 18:40:05 +01:00
delphinus
4e1c46947d
Add & fix tests for added funcs
2019-06-19 15:34:53 +09:00
w0rp
27146ade32
Fix #2544 - Completion positions are off by one
2019-05-30 10:26:17 +01:00
w0rp
67d7caee30
Fix #2535 - Automatically emit <C-x><C-o> less to prevent <C-o> issues
2019-05-28 20:03:35 +01:00
w0rp
e5ea809094
Close #2285 - Add a function for use with omnifunc
2019-05-17 00:57:52 +01:00
w0rp
bfc79bd2aa
#2492 - Try to fix a deoplete bug again
2019-05-12 19:35:10 +01:00
w0rp
df90725c85
Support b:ale_completion_enabled for disabling it for some buffers
2019-05-11 17:19:45 +01:00
w0rp
722c3e8dae
#2481 - Use text to insert from insertText
2019-05-09 17:26:33 +01:00
w0rp
01331266a8
Close #1753 - Implement minimum viable integration with Deoplete
2019-04-23 21:26:25 +01:00
w0rp
03384a5d6f
#2341 - Handle completion messages with textEdit objects
2019-03-10 15:21:36 +00:00
w0rp
413529f603
Fix #2326 - ALEComplete no longer replaces completeopt
2019-03-08 21:32:05 +00:00
w0rp
0d10653a7c
Fix #2295 - Respond to initialize with an initialized message
2019-02-15 08:54:53 +00:00
w0rp
1ee56713b8
#2132 Use an on-init callback for all LSP logic
2019-02-13 17:26:37 +00:00
w0rp
d21581016e
Fix #2257 - Fix an off by 1 which broke completion for some servers
2019-02-08 19:31:47 +00:00
Andrey Popp
e960e54eca
Update tests
2019-01-21 17:40:33 +03:00
Jerko Steiner
b1b05e6e66
Optimize ale#completion#Filter when prefix is ""
2019-01-08 15:10:03 +01:00
Jerko Steiner
9bcf8a2336
Manually trigger autocomplete even when prefix is ""
2019-01-08 12:57:17 +01:00
w0rp
f9e99d81a4
#1794 - Handle LSP documentation content as a Dictionary
2018-09-17 11:16:46 +01:00
Nick Gavalas
b4513fc4b0
fix non-. prefix triggers overfiltering results
2018-09-12 15:47:57 -04:00
Nick Gavalas
44070d8a45
fix tsserver className parsing
2018-09-11 10:56:58 -04:00
w0rp
0ae4ea23c8
#1888 Support names with minuses in Clojure and Lisp
2018-09-07 19:27:42 +01:00
w0rp
c4eca7c417
Use one LSP connection per project
2018-08-24 13:16:58 +01:00
w0rp
daab1a08db
#1700 - Try using a 0ms timer showing the completion menu
2018-07-26 23:08:38 +01:00
w0rp
0012c78b02
#1700 - Temporarily change completion options when the feedkeys() keybind is fired
2018-07-25 20:13:59 +01:00
w0rp
7bf3a749d0
#1751 Handle LSP completion results without the 'kind' attribute
2018-07-23 10:21:09 +01:00
w0rp
3e4db9ed5c
Make the completion events test fail less
2018-07-22 22:42:41 +01:00
w0rp
81a8c77d20
#1692 - Only send completion requests to the first server supporting them
2018-07-22 21:14:56 +01:00
w0rp
6dc737cda1
Check LSP capabilities before using them
2018-07-22 19:04:55 +01:00
w0rp
7952ebe77e
#1700 - Don't send <C-x><C-o> for completion in Insert mode
2018-07-17 19:39:45 +01:00
w0rp
37df1f8ceb
#1700 - Stop handling completion results if you leave insert mode
2018-07-16 17:57:07 +01:00
w0rp
0dd356aa52
Fix the broken tests
2018-07-06 01:00:30 +01:00
w0rp
ca7fa31c61
Close #1690 - Respect the preview setting for completeopt
2018-07-04 08:52:18 +01:00
w0rp
bda89506ba
Lazy-load LSP linters, and check b:changedtick before notifying about changes
2018-06-15 10:01:28 +01:00
w0rp
87455a2ef4
Add a test for handling missing detail keys for LSP completion
2018-06-12 19:31:08 +01:00
w0rp
3c55cb087d
Close #1553 - Support some tsserver completion for strings
2018-05-28 15:16:15 +01:00
w0rp
ef1ec5341f
Fix #1568 - Filter LSP completion results with the prefixes
2018-05-28 14:45:07 +01:00
w0rp
e2c33f2f6c
Add g:ale_completion_excluded_words for completion filtering
2018-05-03 11:17:41 +01:00
w0rp
d8a673515a
Close #1162 - Implement completion support with LSP servers
2018-04-22 12:28:19 +01:00
w0rp
8254e507d6
#1162 Get LSP completions working reasonably well
2017-11-26 13:01:01 +00:00
w0rp
b1a6abdda6
#1162 Add unfinished experimental code for supporting LSP completion, clean up the tests, and make the completion cancelling better
2017-11-26 12:24:18 +00:00