readd ultisnipps

This commit is contained in:
Jidbo 2020-05-23 20:12:36 +02:00
parent b2f42d9023
commit 643e43e30f
Signed by untrusted user: jidbo
GPG key ID: 54C320BF0E44C5CA
3 changed files with 21 additions and 10 deletions

View file

@ -9,6 +9,9 @@ Plug 'tpope/vim-commentary'
" brackets management " brackets management
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
" Snippets
Plug 'SirVer/ultisnips'
" WINDOW MANAGEMENT " WINDOW MANAGEMENT
" tmux navigator " tmux navigator
@ -304,3 +307,14 @@ augroup lsp_install
" call s:on_lsp_buffer_enabled only for languages that has the server registered. " call s:on_lsp_buffer_enabled only for languages that has the server registered.
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
augroup END augroup END
" UltiSnips setup
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-l>"
let g:UltiSnipsJumpBackwardTrigger="<c-h>"
let g:UltiSnipsSnippetDirectories=[$HOME."/.vim/snipps"]
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"

View file

@ -1,11 +1,3 @@
snippet s "symbol"
\\$0
endsnippet
snippet mb "Math Braces"
\\{ $1 \\}$0
endsnippet
snippet mal "Math inline" snippet mal "Math inline"
$ $1 $$0 $ $1 $$0
endsnippet endsnippet
@ -30,6 +22,10 @@ snippet abs "Absolute" i
\\lvert $1 \\rvert$0 \\lvert $1 \\rvert$0
endsnippet endsnippet
snippet mb "Math Braces"
\\{ $1 \\}$0
endsnippet
snippet fra "Fraction" i snippet fra "Fraction" i
\frac\{${1:numerator}\}\{${2:demoninator}\}$0 \frac\{${1:numerator}\}\{${2:demoninator}\}$0
endsnippet endsnippet

View file

@ -1,4 +1,5 @@
snippet plug "Plugin Snippet" snippet plug "Plugin Snippet"
" $1 " $2
Plugin '$0' Plug '$1'
$0
endsnippet endsnippet