1
0
Fork 0

init commit

This commit is contained in:
CRy386i 2024-05-29 16:20:25 +03:00
commit fd509a515b
8 changed files with 419 additions and 0 deletions

35
lua/keys/alias.lua Normal file
View file

@ -0,0 +1,35 @@
-- Set alias for quick-access to method setting hotkey
local map = vim.api.nvim_set_keymap
--[[
Method for setting hotkey (normal) looks like this:
key - {string} String with hotkey
command - {string} Command (LUL)
]]--
function nm(key, command)
map("n", key, command, {noremap = true})
end
--[[
Method for setting hotkey (input)
]]--
function im(key, command)
map("i", key, command, {noremap = true})
end
--[[
Method for setting hotkey (visual)
]]--
function vm(key, command)
map("v", key, command, {noremap = true})
end
--[[
Method for setting hotkey (terminal)
]]--
function tm(key, command)
map("t", key, command, {noremap = true})
end