diff options
author | Matthew Lemon <y@yulqen.org> | 2023-04-07 21:34:42 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-04-07 21:34:42 +0100 |
commit | d43a1c045f161a16fd2fe1d4b61bc5aa86910456 (patch) | |
tree | 24a9330b1fca73023f21c8167ada36fe1e24435d /vim | |
parent | 7798ccbe30c3b82ca4ae164eace30f1e82997bc7 (diff) |
Adding back plugins to vim
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -48,8 +48,30 @@ call plug#begin() Plug 'vim-test/vim-test' Plug 'tpope/vim-dispatch' Plug 'tpope/vim-commentary' +Plug 'ycm-core/YouCompleteMe' +Plug 'rose-pine/vim' +Plug 'SirVer/UltiSnips' +Plug 'honza/vim-snippets' call plug#end() +" YCM +let g:ycm_enable_inlay_hints = 1 +nnoremap <silent> <localleader>h <Plug>(YCMToggleInlayHints) +nnoremap <leader>jd :YcmCompleter GoTo<CR> +nnoremap <leader>jr :YcmCompleter GoToReferences<CR> +nnoremap <leader>k :YcmCompleter GetDoc<CR> + +" snippets +" Trigger configuration. You need to change this to something other than <tab> if you use one of the following: +" - https://github.com/Valloric/YouCompleteMe +" - https://github.com/nvim-lua/completion-nvim +let g:UltiSnipsExpandTrigger="<C-space>" +let g:UltiSnipsJumpForwardTrigger="<c-b>" +let g:UltiSnipsJumpBackwardTrigger="<c-z>" + +" If you want :UltiSnipsEdit to split your window. +let g:UltiSnipsEditSplit="vertical" + " vim-test nmap <silent> tn :TestNearest<CR> nmap <silent> tf :TestFile<CR> @@ -167,6 +189,7 @@ nnoremap <leader>ev <C-w>s<C-w>j<C-w>L:e $MYVIMRC<cr> set background=dark "colorscheme hipster +colorscheme rosepine " manual highlights " highlight Visual ctermfg=black ctermbg=LightMagenta |