From 9ac74c44fea3e1529f4d6a4cd46a5efa20ec64f4 Mon Sep 17 00:00:00 2001 From: w0rp Date: Fri, 4 Aug 2017 13:35:02 +0100 Subject: Tell Vim omnicompletion that tsserver matches are case-insensitive --- autoload/ale/completion.vim | 1 + test/test_completion.vader | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim index 3eeb6173..66c20565 100644 --- a/autoload/ale/completion.vim +++ b/autoload/ale/completion.vim @@ -162,6 +162,7 @@ function! ale#completion#ParseTSServerCompletionEntryDetails(response) abort call add(l:results, { \ 'word': l:suggestion.name, \ 'kind': l:kind, + \ 'icase': 1, \ 'menu': join(l:displayParts, ''), \ 'info': join(l:documentationParts, ''), \}) diff --git a/test/test_completion.vader b/test/test_completion.vader index f971f44c..65cef465 100644 --- a/test/test_completion.vader +++ b/test/test_completion.vader @@ -29,13 +29,15 @@ Execute(TypeScript completion details responses should be parsed correctly): \ 'word': 'abc', \ 'menu': '(property) Foo.abc: number', \ 'info': '', - \ 'kind': 'f' + \ 'kind': 'f', + \ 'icase': 1, \ }, \ { \ 'word': 'def', \ 'menu': '(property) Foo.def: number', \ 'info': 'foo bar baz', - \ 'kind': 'f' + \ 'kind': 'f', + \ 'icase': 1, \ }, \ ], \ ale#completion#ParseTSServerCompletionEntryDetails({ -- cgit v1.2.3