diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2020-11-04 19:35:59 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2020-11-04 19:35:59 +0900 |
commit | 1fe92ac56c4249b1ca66ff7c17dee2909c3cb3df (patch) | |
tree | 4196f428431502d76d29fb3a47415751d9d3b7c0 /autoload | |
parent | 3c94074f71faac00a7d8f4eef2c4bdea96212cd5 (diff) | |
download | deoplete.nvim-1fe92ac56c4249b1ca66ff7c17dee2909c3cb3df.zip |
Fix for Vim script autocompletion
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/deoplete/handler.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/deoplete/handler.vim b/autoload/deoplete/handler.vim index 8f6e0d8..c9ce1e2 100644 --- a/autoload/deoplete/handler.vim +++ b/autoload/deoplete/handler.vim @@ -314,6 +314,11 @@ function! s:matched_indentkeys(input) abort \ : matchstr(v:val, ':\\|e\\|=\\zs.*')"), \ "v:val !=# ''") + if word ==# ':' && &filetype ==# 'vim' + " ':' completion must not be skipped + continue + endif + if word ==# 'e' let word = 'else' endif |