Stuff
This commit is contained in:
		
							parent
							
								
									73fa26e596
								
							
						
					
					
						commit
						e9e17ac035
					
				
					 3 changed files with 37 additions and 2 deletions
				
			
		|  | @ -1,5 +1,12 @@ | |||
| set runtimepath+=~/.config/vim,~/.config/vim/after | ||||
| set viminfo+=n~/.cache/viminfo | ||||
| 
 | ||||
| if has('nvim') | ||||
|     " Neovim specific commands | ||||
|     set viminfo+=n~/.cache/nviminfo | ||||
| else | ||||
|     " Standard vim specific commands | ||||
|     set viminfo+=n~/.cache/viminfo | ||||
| endif | ||||
| 
 | ||||
| " Plug plugins using VimPlug | ||||
| call plug#begin('~/.config/vim/plugged') | ||||
|  | @ -20,6 +27,8 @@ call plug#begin('~/.config/vim/plugged') | |||
|     Plug 'lervag/vimtex' | ||||
|     Plug 'fatih/vim-go' | ||||
|     Plug 'machakann/vim-swap' | ||||
|     Plug 'tpope/vim-sleuth' | ||||
|     Plug 'neoclide/coc.nvim', { 'branch': 'release' } | ||||
| call plug#end() | ||||
| 
 | ||||
| packadd termdebug | ||||
|  | @ -138,3 +147,23 @@ let g:tex_flavor = 'latex' | |||
| let g:vimtex_compiler_latexmk = { | ||||
| \   'build_dir': 'latexmk_output' | ||||
| \} | ||||
| 
 | ||||
| 
 | ||||
| inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" | ||||
| inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" | ||||
| 
 | ||||
| inoremap <silent><expr> <C-space> coc#refresh() | ||||
| 
 | ||||
| "GoTo code navigation | ||||
| nmap <leader>g <C-o> | ||||
| nmap <silent> gd <Plug>(coc-definition) | ||||
| nmap <silent> gt <Plug>(coc-type-definition) | ||||
| nmap <silent> gi <Plug>(coc-implementation) | ||||
| nmap <silent> gr <Plug>(coc-references) | ||||
| 
 | ||||
| nmap <leader>rn <Plug>(coc-rename) | ||||
| 
 | ||||
| "show all diagnostics. | ||||
| nnoremap <silent> <leader>d :<C-u>CocList diagnostics<cr> | ||||
| "manage extensions. | ||||
| nnoremap <silent> <leader>e :<C-u>CocList extensions<cr> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue