VIM: Update Plugins

This commit is contained in:
Tobias Manske 2022-11-08 22:26:01 +01:00
parent db7a295dc3
commit 4914f5df05
Signed by: tobias
GPG Key ID: E83C743C1FC2F79A
2 changed files with 13 additions and 5 deletions

View File

@ -101,16 +101,24 @@ set shortmess+=c
let g:coc_filetype_map = {'tex': 'latex'}
" Use tab for trigger completion with characters ahead and navigate.
" Use command ':verbose imap <tab>' to make sure tab is not mapped by other plugin.
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction
" Insert <tab> when previous text is space, refresh completion if not.
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
\ coc#pum#visible() ? coc#pum#next(1):
\ <SID>check_back_space() ? "\<Tab>" :
\ coc#refresh()
inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
" Use <c-space> to trigger completion.
inoremap <silent><expr> <c-space> coc#refresh()

View File

@ -54,7 +54,7 @@ Plug 'ryanoasis/vim-devicons'
Plug 'xuhdev/singlecompile'
" Autocomplete
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'neoclide/coc.nvim', {'tag': 'v0.0.82'}
Plug 'honza/vim-snippets'
" Language Specific stuff (Language Plugins, Linters, etc)