Updated vimtex and snippets
This commit is contained in:
parent
84a6b218fe
commit
10bf23a6ec
44 changed files with 4209 additions and 69 deletions
32
LuaSnip/lua.lua
Normal file
32
LuaSnip/lua.lua
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
local helpers = require('personal.luasnip-helper-funcs')
|
||||
local get_visual = helpers.get_visual
|
||||
|
||||
local line_begin = require("luasnip.extras.expand_conditions").line_begin
|
||||
|
||||
return
|
||||
{
|
||||
-- PRINT
|
||||
s({trig="pp", snippetType="autosnippet"},
|
||||
fmta(
|
||||
[[
|
||||
print(<>)
|
||||
]],
|
||||
{
|
||||
d(1, get_visual),
|
||||
}
|
||||
),
|
||||
{condition = line_begin}
|
||||
),
|
||||
-- DO RETURN END
|
||||
s({trig="XX", snippetType="autosnippet"},
|
||||
fmta(
|
||||
[[
|
||||
do return end
|
||||
]],
|
||||
{
|
||||
}
|
||||
),
|
||||
{condition = line_begin}
|
||||
),
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue