Compare commits

..

3 Commits

4 changed files with 55 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ zsh/.config/zsh/.zhistory
vifm/.config/vifm/vifm-help.txt
vifm/.config/vifm/vifminfo.json
nvim/.config/nvim/autoload

View File

@ -96,3 +96,6 @@ vim.api.nvim_set_keymap("s", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true})
vim.api.nvim_set_keymap('i', '<cr>', 'compe#confirm("<cr>")', { expr = true })
vim.api.nvim_set_keymap('i', '<c-space>', 'compe#complete()', { expr = true })
EOF
let g:vsnip_snippet_dir = expand('~/.config/nvim/vsnips')

View File

@ -0,0 +1,20 @@
{
"image": {
"prefix": "image",
"body": [
".. image:: $1",
"\t:height: 200px",
"\t:alt: $2",
"$0"
],
"description": "Insert image"
},
"etape": {
"prefix": ["etape", "étape"],
"body": [
"Étape ${1:1}: $2",
"$0"
],
"description": "Insert image"
}
}

View File

@ -0,0 +1,31 @@
{
"tabular": {
"prefix": "tabular",
"body": [
"\\\\begin{tabular}{$1}",
"\\\\hline",
"\t$0",
"\\\\hline",
"\\\\end{tabular}"
],
"description": "tabular"
},
"center": {
"prefix": "center",
"body": [
"\\\\begin{center}",
"\t$0",
"\\\\end{center}"
],
"description": "center"
},
"minipage": {
"prefix": "minipage",
"body": [
"\\\\begin{minipage}{${1:0.5}${2:\\\\linewidth}}",
"\t$0",
"\\\\end{minipage}"
],
"description": "minipage"
}
}