mirror of
				https://github.com/ItsDrike/dotfiles.git
				synced 2025-10-31 16:06:36 +00:00 
			
		
		
		
	Add coc-fzf plugin
This commit is contained in:
		
							parent
							
								
									cc7c8db10b
								
							
						
					
					
						commit
						ac438d1480
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -7,6 +7,7 @@ | ||||||
| " this is open to pull requests | " this is open to pull requests | ||||||
| 
 | 
 | ||||||
| Plug 'neoclide/coc.nvim', {'branch': 'release'} | Plug 'neoclide/coc.nvim', {'branch': 'release'} | ||||||
|  | Plug 'antoinemadec/coc-fzf' | ||||||
| 
 | 
 | ||||||
| let g:coc_global_extensions = [ | let g:coc_global_extensions = [ | ||||||
|     \ 'coc-pyright', 'coc-json', 'coc-git', 'coc-html', 'coc-css', |     \ 'coc-pyright', 'coc-json', 'coc-git', 'coc-html', 'coc-css', | ||||||
|  | @ -15,6 +16,8 @@ let g:coc_global_extensions = [ | ||||||
|     \ 'coc-lua' |     \ 'coc-lua' | ||||||
|     \ ] |     \ ] | ||||||
| 
 | 
 | ||||||
|  | nmap <leader>l :CocFzfList<cr> | ||||||
|  | 
 | ||||||
| " Use tab for trigger completion with characters ahead and navigate. | " 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. | " Use command ':verbose imap <tab>' to make sure tab is not mapped by other plugin. | ||||||
| inoremap <silent><expr> <TAB> | inoremap <silent><expr> <TAB> | ||||||
|  | @ -63,7 +66,7 @@ nmap <leader>rn <Plug>(coc-rename) | ||||||
| xmap <leader>f  <Plug>(coc-format-selected) | xmap <leader>f  <Plug>(coc-format-selected) | ||||||
| nmap <leader>f  <Plug>(coc-format-selected) | nmap <leader>f  <Plug>(coc-format-selected) | ||||||
| 
 | 
 | ||||||
| augroup mygroup | augroup CocGroup | ||||||
|     autocmd! |     autocmd! | ||||||
|     " Setup formatexpr specified filetype(s). |     " Setup formatexpr specified filetype(s). | ||||||
|     autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') |     autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue