Add snippets and try to fix up diff some more

This commit is contained in:
Leon Grünewald 2022-10-04 11:22:50 +02:00
parent 6efcae5172
commit 0c2859a39d

10
.vimrc
View file

@ -25,6 +25,8 @@ if has('nvim')
Plug 'windwp/nvim-autopairs'
Plug 'ms-jpq/chadtree', {'branch': 'chad', 'do': 'python3 -m chadtree deps'}
endif
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'adelarsq/vim-matchit'
Plug 'alvan/vim-closetag'
Plug 'andymass/vim-matchup'
@ -49,12 +51,18 @@ if has('nvim')
"" CHADTree config
if !&diff
if &diff
else
autocmd VimEnter * CHADopen --nofocus
endif
nnoremap <leader>v <cmd>CHADopen<cr>
endif
"" Ultrasnips
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
"" Vim Closetag
let g:closetag_filenames = '*.xml,*.xlf,*.html,*.xhtml,*.phtml'