commit bb3298cf4a422ef5aa4ba104a0313730cb091000
parent e403bd2141415f7404c0cb9a0f853d92ca68e29d
Author: Tomas Nemec <nemec@medoro.org>
Date: Wed, 16 Jul 2025 07:42:53 +0200
feat: todo name based on git email
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lua/tms/snippets.lua b/lua/tms/snippets.lua
@@ -36,7 +36,7 @@ local global = {
{
prefix = 'todo',
body = function()
- return cmt() .. ' TODO(' .. system { 'id', '-un' } .. ') ' .. os.date('%d.%m.%y') .. ': $0'
+ return cmt() .. ' TODO(' .. system { 'git', 'config', '--get', 'user.email' } .. ') ' .. os.date('%d.%m.%y') .. ': $0'
end,
},
{ prefix = 'bang', body = '#!/usr/bin/env $0' },