vimrc: configure deoplete
This commit is contained in:
parent
6368455160
commit
6e1080302b
18
vimrc
18
vimrc
|
@ -59,6 +59,8 @@ set shortmess+=I
|
||||||
set pastetoggle=<f2>
|
set pastetoggle=<f2>
|
||||||
" See :help thesaurus
|
" See :help thesaurus
|
||||||
set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt
|
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:
|
" Colour scheme:
|
||||||
colorscheme iceberg
|
colorscheme iceberg
|
||||||
|
@ -83,7 +85,7 @@ imap <down> <nop>
|
||||||
imap <left> <nop>
|
imap <left> <nop>
|
||||||
imap <right> <nop>
|
imap <right> <nop>
|
||||||
|
|
||||||
nmap <silent> ,/ :nohlsearch<CR>
|
nnoremap <silent> ,/ :nohlsearch<CR>
|
||||||
map <c-t> <esc>:tabnew<cr>
|
map <c-t> <esc>:tabnew<cr>
|
||||||
" Select just-pasted text:
|
" Select just-pasted text:
|
||||||
nnoremap <Leader>0 `[v`]
|
nnoremap <Leader>0 `[v`]
|
||||||
|
@ -93,7 +95,13 @@ map <leader>v :vsplit<cr>
|
||||||
map <leader>h :split<cr>file browser
|
map <leader>h :split<cr>file browser
|
||||||
map <leader>! <esc>:only<cr>
|
map <leader>! <esc>:only<cr>
|
||||||
" ctrl-c to unload a buffer
|
" 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()
|
function! ToggleQuickFix()
|
||||||
if empty(filter(getwininfo(), 'v:val.quickfix'))
|
if empty(filter(getwininfo(), 'v:val.quickfix'))
|
||||||
|
@ -120,7 +128,10 @@ map <Leader>8 :call RequestGrep()<CR>
|
||||||
" deoplete configuration
|
" deoplete configuration
|
||||||
packadd! deoplete.nvim
|
packadd! deoplete.nvim
|
||||||
let g:deoplete#enable_at_startup = 1
|
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:
|
" vim-markdown configuration:
|
||||||
let g:vim_markdown_conceal = 1
|
let g:vim_markdown_conceal = 1
|
||||||
|
@ -136,6 +147,7 @@ let g:CommandTGitScanSubmodules=1
|
||||||
let g:CommandTGitIncludeUntracked=1
|
let g:CommandTGitIncludeUntracked=1
|
||||||
let g:CommandTMatchWindowAtTop=0
|
let g:CommandTMatchWindowAtTop=0
|
||||||
let g:CommandTMaxHeight=20
|
let g:CommandTMaxHeight=20
|
||||||
|
packadd! command-t
|
||||||
|
|
||||||
" Lightline configuration:
|
" Lightline configuration:
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
|
|
Loading…
Reference in New Issue