Updated vimtex and snippets
This commit is contained in:
parent
84a6b218fe
commit
10bf23a6ec
44 changed files with 4209 additions and 69 deletions
33
LuaSnip/cpp/io.lua
Normal file
33
LuaSnip/cpp/io.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
local helpers = require('personal.luasnip-helper-funcs')
|
||||
local get_visual = helpers.get_visual
|
||||
|
||||
local line_begin = require("luasnip.extras.expand_conditions").line_begin
|
||||
|
||||
return
|
||||
{
|
||||
-- PRINTF
|
||||
-- s({trig = "pp", snippetType="autosnippet"},
|
||||
-- fmta(
|
||||
-- [[printf("<>"<>);]],
|
||||
-- {
|
||||
-- i(1),
|
||||
-- i(2)
|
||||
-- }
|
||||
-- ),
|
||||
-- { condition = line_begin }
|
||||
-- ),
|
||||
-- GETLINE BOILERPLATE
|
||||
s({trig = "gll", snippetType="autosnippet"},
|
||||
fmta(
|
||||
[[
|
||||
char *line = NULL;
|
||||
size_t len = 0;
|
||||
ssize_t nread;
|
||||
nread = getline(&line, &len, stdin);
|
||||
<>
|
||||
free(line);
|
||||
]],
|
||||
{ i(0) }
|
||||
)
|
||||
),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue