Updated vimtex and snippets

This commit is contained in:
Minhazul Haque 2024-03-02 19:25:49 +06:00
parent 84a6b218fe
commit 10bf23a6ec
44 changed files with 4209 additions and 69 deletions

36
LuaSnip/make.lua Normal file
View file

@ -0,0 +1,36 @@
local helpers = require('personal.luasnip-helper-funcs')
local get_visual = helpers.get_visual
local line_begin = require("luasnip.extras.expand_conditions").line_begin
return
{
-- VARIABLE
s({trig = "vv", wordTrig=false, snippetType="autosnippet"},
fmta(
[[
$(<>)
]],
{
d(1, get_visual),
}
)
),
-- ECHO
s({trig = "pp", wordTrig=false, snippetType="autosnippet"},
fmta(
[[
@echo
]],
{ }
)
),
-- PHONY target
s({trig = "PP", wordTrig=false, snippetType="autosnippet"},
fmta(
[[
.PHONY:
]],
{ }
)
),
}