add: custom keymaps

This commit is contained in:
asep komarudin 2024-02-29 06:45:01 +07:00
parent 20e8fc9b55
commit c045fc1f63
4 changed files with 20 additions and 2 deletions

6
lua/custom/keymaps.lua Normal file
View file

@ -0,0 +1,6 @@
-- custom key maps disini
local function map(mode, l, r, desc)
vim.keymap.set(mode, l, r, { desc = desc })
end
-- click ctrl + Left mouse buttn to run
map("t", "<C-LeftMouse>", "<cmd>lua print('Run Link')<cr>", "Run Link")