feat: init

This commit is contained in:
2025-09-08 23:25:52 +02:00
commit c5da5cde6b
4 changed files with 52 additions and 0 deletions

13
LICENSE Normal file
View 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.

4
README.md Normal file
View File

@@ -0,0 +1,4 @@
# Neovim mokey-alert
## WIP

12
lua/line-blame.lua Normal file
View 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
View 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
--