feat: init
This commit is contained in:
13
LICENSE
Normal file
13
LICENSE
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
Version 2, December 2004
|
||||||
|
|
||||||
|
Copyright (C) 2025 Daniel Heras Quesada
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim or modified
|
||||||
|
copies of this license document, and changing it is allowed as long
|
||||||
|
as the name is changed.
|
||||||
|
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||||
12
lua/line-blame.lua
Normal file
12
lua/line-blame.lua
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
local lineBlame = function()
|
||||||
|
// TODO: everything
|
||||||
|
local mail_blame = os.execute("git blame -e .githooks/pre-commit")
|
||||||
|
local mail_blame_awk = os.execute("git blame -e .githooks/pre-commit | awk '{ print $2 $6}'");
|
||||||
|
local test_str = "24a332e7 (<dani.heras@hotmail.com> 2025-09-08 19:42:51 +0200 39) email=$(git config user.email)"
|
||||||
|
local results = test_str:match(".*<(.*)>.* ([0-9]+)\)")
|
||||||
|
local results = test_str:match(".*<(.*)>.* ([0-9]+)\)")
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
lineBlame = lineBlame,
|
||||||
|
}
|
||||||
23
lua/monkey-alert.lua
Normal file
23
lua/monkey-alert.lua
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
local blame = require("./line-blame.lua")
|
||||||
|
|
||||||
|
local defaultList = "one;two"
|
||||||
|
vim.g.monkeyMailList = defaultList
|
||||||
|
vim.g.monkeyUserList = defaultList
|
||||||
|
|
||||||
|
local function setup(opts)
|
||||||
|
vim.g.monkeyMailList = opts.monkeyMailList
|
||||||
|
vim.g.monkeyUserList = opts.monkeyUserList
|
||||||
|
end
|
||||||
|
|
||||||
|
local function observe()
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
setup = setup,
|
||||||
|
observe = observe,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- NOTE:
|
||||||
|
-- vim.log.levels.DEBUG vim.log.levels.ERROR vim.log.levels.INFO vim.log.levels.TRACE vim.log.levels.WARN vim.log.levels.OFF
|
||||||
|
--
|
||||||
Reference in New Issue
Block a user