mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-23 00:57:34 +00:00
Fix deoplete completion
This commit is contained in:
parent
6cb6db86bc
commit
2061f3b219
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,3 +10,4 @@ vim/rc/*.local.rc.vim
|
|||||||
vim/rc/plugins/*.local.rc.vim
|
vim/rc/plugins/*.local.rc.vim
|
||||||
vim/tmp/*
|
vim/tmp/*
|
||||||
vim/tmp/viminfo.*
|
vim/tmp/viminfo.*
|
||||||
|
.DS_Store
|
||||||
|
@ -5,8 +5,17 @@ Plug 'Shougo/neco-syntax'
|
|||||||
Plug 'zchee/deoplete-jedi', { 'for': 'python' }
|
Plug 'zchee/deoplete-jedi', { 'for': 'python' }
|
||||||
Plug 'zchee/deoplete-go', { 'do': 'make' }
|
Plug 'zchee/deoplete-go', { 'do': 'make' }
|
||||||
|
|
||||||
inoremap <silent><expr> <C-Space> pumvisible() ? "\<C-n>" : deoplete#mappings#manual_complete()
|
" inoremap <silent><expr> <nul> pumvisible() ? "\<C-n>" : deoplete#mappings#manual_complete()
|
||||||
inoremap <silent><expr> <nul> pumvisible() ? "\<C-n>" : deoplete#mappings#manual_complete()
|
inoremap <silent><expr> <C-Space>
|
||||||
|
\ pumvisible() ? "\<C-n>" :
|
||||||
|
\ <SID>check_back_space() ? "\<C-Space>" :
|
||||||
|
\ deoplete#manual_complete()
|
||||||
|
|
||||||
|
function! s:check_back_space() abort "{{{
|
||||||
|
let col = col('.') - 1
|
||||||
|
return !col || getline('.')[col - 1] =~ '\s'
|
||||||
|
endfunction
|
||||||
|
"}}}
|
||||||
|
|
||||||
if !exists('g:deoplete#sources')
|
if !exists('g:deoplete#sources')
|
||||||
let g:deoplete#sources = {}
|
let g:deoplete#sources = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user