29 lines
985 B
Lua
29 lines
985 B
Lua
local s = require("luasnip.nodes.snippet").S
|
|
local t = require("luasnip.nodes.textNode").T
|
|
local fmt = require("luasnip.extras.fmt").fmt
|
|
local i = require("luasnip.nodes.insertNode").I
|
|
|
|
return {
|
|
-- some common Gentoo review comments
|
|
s({ trig = 'pkgdev',
|
|
name = 'use pkgdev',
|
|
}, {
|
|
t({ [[Consider comitting and pushing with ]] ..
|
|
[[[`pkgdev`](https://wiki.gentoo.org/wiki/Pkgdev) or checking ]] ..
|
|
[[with [`pkgcheck`](https://wiki.gentoo.org/wiki/Pkgcheck) ]] ..
|
|
[[before pushing, it catches these things.]]
|
|
}),
|
|
}),
|
|
s({ trig = 'quotevar',
|
|
name = 'quote variable',
|
|
},
|
|
fmt([[Please quote `${{{variable}}}`, it could contain spaces.]],
|
|
{ variable = i(1) })),
|
|
s({ trig = ':=',
|
|
name = 'subscribe to subslot'
|
|
}, {
|
|
t([[Very likely [needs `:=`](https://devmanual.gentoo.org/]] ..
|
|
[[general-concepts/slotting/index.html#abi-breakage).]]),
|
|
})
|
|
}
|