vimrc: configure deoplete

This commit is contained in:
Rob Watson 2021-01-18 09:53:50 +01:00
parent 6368455160
commit 6e1080302b
1 changed files with 15 additions and 3 deletions

18
vimrc
View File

@ -59,6 +59,8 @@ set shortmess+=I
set pastetoggle=<f2>
" See :help thesaurus
set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt
set completeopt=menu,menuone,popup,longest
set completepopup=width:100,height:50,align:menu,border:off
" Colour scheme:
colorscheme iceberg
@ -83,7 +85,7 @@ imap <down> <nop>
imap <left> <nop>
imap <right> <nop>
nmap <silent> ,/ :nohlsearch<CR>
nnoremap <silent> ,/ :nohlsearch<CR>
map <c-t> <esc>:tabnew<cr>
" Select just-pasted text:
nnoremap <Leader>0 `[v`]
@ -93,7 +95,13 @@ map <leader>v :vsplit<cr>
map <leader>h :split<cr>file browser
map <leader>! <esc>:only<cr>
" ctrl-c to unload a buffer
nnoremap <silent> <c-c> :bp\|bd #<cr>
nnoremap <silent> <c-q> :bp\|bd #<cr>
nnoremap <silent> br :GoDebugBreakpoint<cr>
nnoremap <silent> d! :GoDebugStart<cr>
nnoremap <silent> dc :GoDebugContinue<cr>
nnoremap <silent> dq :GoDebugStop<cr>
nnoremap <silent> dn :GoDebugNext<cr>
nnoremap <silent> ds :GoDebugStep<cr>
function! ToggleQuickFix()
if empty(filter(getwininfo(), 'v:val.quickfix'))
@ -120,7 +128,10 @@ map <Leader>8 :call RequestGrep()<CR>
" deoplete configuration
packadd! deoplete.nvim
let g:deoplete#enable_at_startup = 1
call deoplete#custom#option('num_processes', 2)
call deoplete#custom#option('num_processes', 6)
" <TAB>: completion.
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
inoremap <expr><s-TAB> pumvisible() ? "\<C-p>" : "\<s-TAB>"
" vim-markdown configuration:
let g:vim_markdown_conceal = 1
@ -136,6 +147,7 @@ let g:CommandTGitScanSubmodules=1
let g:CommandTGitIncludeUntracked=1
let g:CommandTMatchWindowAtTop=0
let g:CommandTMaxHeight=20
packadd! command-t
" Lightline configuration:
set laststatus=2