diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-07-20 04:43:22 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-07-20 04:43:22 +0900 |
commit | dafd92e17b55c001008a7cdb5a339a30fbacf9d5 (patch) | |
tree | 192ef42f0dbe1260d82ecefba9cca1d1300c0214 /doc | |
parent | 518477758d2e207f9174184a322bd857e489e9e3 (diff) | |
download | deoplete.nvim-dafd92e17b55c001008a7cdb5a339a30fbacf9d5.zip |
Fix #310 manual_complete() example
Diffstat (limited to 'doc')
-rw-r--r-- | doc/deoplete.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/deoplete.txt b/doc/deoplete.txt index 160e4a7..030b95a 100644 --- a/doc/deoplete.txt +++ b/doc/deoplete.txt @@ -429,10 +429,15 @@ deoplete#manual_complete([{sources}]) |g:deoplete#disable_auto_complete|, which should be 1 then typically. > - inoremap <silent><expr> <Tab> - \ pumvisible() ? "\<C-n>" : deoplete#manual_complete() + inoremap <silent><expr> <TAB> + \ pumvisible() ? "\<C-n>" : + \ <SID>check_back_space() ? "\<TAB>" : + \ deoplete#mappings#manual_complete() + function! s:check_back_space() abort "{{{ + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~ '\s' + endfunction"}}} < - *deoplete#smart_close_popup()* deoplete#smart_close_popup() Insert candidate and re-generate popup menu for deoplete. |