extra: nvim: Add some custom snippets for maui
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
3671896b26
commit
b332d2baae
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue