feat: initial commit

This commit is contained in:
hmeens
2026-03-20 16:44:13 +01:00
commit 2d9f13f9ab
28 changed files with 2716 additions and 0 deletions

27
nvim/lua/utils.lua Normal file
View File

@@ -0,0 +1,27 @@
local M = {}
M.map = function(mode, shortcut, command)
vim.keymap.set(mode, shortcut, command, { noremap = true, silent = true })
end
M.nmap = function(shortcut, command)
M.map("n", shortcut, command)
end
M.imap = function(shortcut, command)
M.map("i", shortcut, command)
end
M.vmap = function(shortcut, command)
M.map("v", shortcut, command)
end
M.nvmap = function(shortcut, command)
M.map({ "n", "v" }, shortcut, command)
end
M.tmap = function(shortcut, command)
M.map("t", shortcut, command)
end
return M