From d43a1c045f161a16fd2fe1d4b61bc5aa86910456 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 7 Apr 2023 21:34:42 +0100 Subject: Adding back plugins to vim --- vim/vimrc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 60a10fc..4bf6c8e 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -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 h (YCMToggleInlayHints) +nnoremap jd :YcmCompleter GoTo +nnoremap jr :YcmCompleter GoToReferences +nnoremap k :YcmCompleter GetDoc + +" snippets +" Trigger configuration. You need to change this to something other than if you use one of the following: +" - https://github.com/Valloric/YouCompleteMe +" - https://github.com/nvim-lua/completion-nvim +let g:UltiSnipsExpandTrigger="" +let g:UltiSnipsJumpForwardTrigger="" +let g:UltiSnipsJumpBackwardTrigger="" + +" If you want :UltiSnipsEdit to split your window. +let g:UltiSnipsEditSplit="vertical" + " vim-test nmap tn :TestNearest nmap tf :TestFile @@ -167,6 +189,7 @@ nnoremap ev sjL:e $MYVIMRC set background=dark "colorscheme hipster +colorscheme rosepine " manual highlights " highlight Visual ctermfg=black ctermbg=LightMagenta -- cgit v1.2.3