extra: nvim: Add some custom snippets for maui

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-07-12 12:32:40 +02:00
parent 3671896b26
commit b332d2baae
Signed by: c8h4
GPG key ID: 1538094429952F86

View file

@ -415,3 +415,21 @@ vim.cmd.highlight('comment', 'ctermfg=7')
-- Bring modified buffers to attention
vim.cmd['highlight!']('BufferInactiveMod', 'cterm=bold')
vim.cmd['highlight!']('BufferCurrentMod', 'cterm=bold')
if vim.fn.hostname() == 'maui' then
local ls = require('luasnip')
local conds = require('luasnip.extras.conditions.expand')
ls.add_snippets('mail', {
ls.snippet('t-b', {
ls.text_node('Tested-by: Christoph Heiss <c.heiss@proxmox.com>'),
}, {
condition = conds.line_begin,
}),
ls.snippet('r-b', {
ls.text_node('Reviewed-by: Christoph Heiss <c.heiss@proxmox.com>'),
}, {
condition = conds.line_begin,
}),
})
end