Fix coc.nvim mappings in C/C++ files
This commit is contained in:
		
							parent
							
								
									46d27c17fd
								
							
						
					
					
						commit
						f00eb38200
					
				| @ -9,8 +9,6 @@ setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// | |||||||
| setlocal commentstring=//%s | setlocal commentstring=//%s | ||||||
| " Stop automatic new lines which typing long single liners. | " Stop automatic new lines which typing long single liners. | ||||||
| setlocal textwidth=0 | setlocal textwidth=0 | ||||||
| " Map K to get YouCompleteMe documentation. |  | ||||||
| nnoremap K :YcmCompleter GetDoc<CR> |  | ||||||
| " "ys{motion}t" turns "word" -> "TODO(word):" | " "ys{motion}t" turns "word" -> "TODO(word):" | ||||||
| let b:surround_{char2nr("t")} = "TODO(\r):" | let b:surround_{char2nr("t")} = "TODO(\r):" | ||||||
| " "ys{motion}/" turns "text" into "/*text*/" | " "ys{motion}/" turns "text" into "/*text*/" | ||||||
|  | |||||||
| @ -1,10 +1,10 @@ | |||||||
| " coc.nvim | " coc.nvim | ||||||
| nnoremap <silent> <leader>fi <Plug>(coc-fix-current) | nmap <silent> <leader>fi <Plug>(coc-fix-current) | ||||||
| nnoremap <silent> <leader>gd <Plug>(coc-definition) | nmap <silent> <leader>gd <Plug>(coc-definition) | ||||||
| nnoremap <silent> <leader>gt <Plug>(coc-type-definition) | nmap <silent> <leader>gt <Plug>(coc-type-definition) | ||||||
| nnoremap <silent> <leader>sd <Plug>(coc-diagnostic-info) | nmap <silent> <leader>sd <Plug>(coc-diagnostic-info) | ||||||
| nnoremap <silent> <leader>gr <Plug>(coc-references) | nmap <silent> <leader>gr <Plug>(coc-references) | ||||||
| nnoremap <silent> K :call do#show_documentation()<CR> | nmap <silent> K :call do#show_documentation()<CR> | ||||||
| 
 | 
 | ||||||
| if has('nvim') | if has('nvim') | ||||||
|   " Make nvim :terminal more like vim :terminal |   " Make nvim :terminal more like vim :terminal | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user