Add coc-fzf plugin

This commit is contained in:
ItsDrike 2021-12-03 14:42:27 +01:00
parent cc7c8db10b
commit ac438d1480
No known key found for this signature in database
GPG key ID: FB8CA11A2CF3A843

View file

@ -7,6 +7,7 @@
" this is open to pull requests
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'antoinemadec/coc-fzf'
let g:coc_global_extensions = [
\ 'coc-pyright', 'coc-json', 'coc-git', 'coc-html', 'coc-css',
@ -15,6 +16,8 @@ let g:coc_global_extensions = [
\ 'coc-lua'
\ ]
nmap <leader>l :CocFzfList<cr>
" 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.
inoremap <silent><expr> <TAB>
@ -63,7 +66,7 @@ nmap <leader>rn <Plug>(coc-rename)
xmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected)
augroup mygroup
augroup CocGroup
autocmd!
" Setup formatexpr specified filetype(s).
autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected')