Add xmap function

This commit is contained in:
ItsDrike 2021-12-03 23:37:56 +01:00
parent 682a63b9d1
commit 1682cfd4ea
No known key found for this signature in database
GPG key ID: FB8CA11A2CF3A843

View file

@ -29,6 +29,10 @@ function tmap(shortcut, command, options)
keymap("t", shortcut, command, options)
end
function xmap(shortcut, command, options)
keymap("x", shortcut, command, options)
end
-- Unmap arrow keys in normal mode to remove bad habits
nmap("<Down>", "<nop>")
nmap("<Left>", "<nop>")
@ -109,4 +113,3 @@ nmap("<leader>Q", ":bufdo bdelete<CR>")
-- a message saying that dbext plugin isn't installed
-- See :h ft-sql.txt
vim.g.omni_sql_no_default_maps = 1