Tell Vim omnicompletion that tsserver matches are case-insensitive
This commit is contained in:
parent
d1023e9c2c
commit
9ac74c44fe
@ -162,6 +162,7 @@ function! ale#completion#ParseTSServerCompletionEntryDetails(response) abort
|
|||||||
call add(l:results, {
|
call add(l:results, {
|
||||||
\ 'word': l:suggestion.name,
|
\ 'word': l:suggestion.name,
|
||||||
\ 'kind': l:kind,
|
\ 'kind': l:kind,
|
||||||
|
\ 'icase': 1,
|
||||||
\ 'menu': join(l:displayParts, ''),
|
\ 'menu': join(l:displayParts, ''),
|
||||||
\ 'info': join(l:documentationParts, ''),
|
\ 'info': join(l:documentationParts, ''),
|
||||||
\})
|
\})
|
||||||
|
@ -29,13 +29,15 @@ Execute(TypeScript completion details responses should be parsed correctly):
|
|||||||
\ 'word': 'abc',
|
\ 'word': 'abc',
|
||||||
\ 'menu': '(property) Foo.abc: number',
|
\ 'menu': '(property) Foo.abc: number',
|
||||||
\ 'info': '',
|
\ 'info': '',
|
||||||
\ 'kind': 'f'
|
\ 'kind': 'f',
|
||||||
|
\ 'icase': 1,
|
||||||
\ },
|
\ },
|
||||||
\ {
|
\ {
|
||||||
\ 'word': 'def',
|
\ 'word': 'def',
|
||||||
\ 'menu': '(property) Foo.def: number',
|
\ 'menu': '(property) Foo.def: number',
|
||||||
\ 'info': 'foo bar baz',
|
\ 'info': 'foo bar baz',
|
||||||
\ 'kind': 'f'
|
\ 'kind': 'f',
|
||||||
|
\ 'icase': 1,
|
||||||
\ },
|
\ },
|
||||||
\ ],
|
\ ],
|
||||||
\ ale#completion#ParseTSServerCompletionEntryDetails({
|
\ ale#completion#ParseTSServerCompletionEntryDetails({
|
||||||
|
Loading…
Reference in New Issue
Block a user