From 1682cfd4eaaf2b8ee324c32fb1b3b07baaa3d207 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 3 Dec 2021 23:37:56 +0100 Subject: [PATCH] Add xmap function --- home/.config/nvim/lua/mappings.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/.config/nvim/lua/mappings.lua b/home/.config/nvim/lua/mappings.lua index 4d98f5c..d35b58b 100644 --- a/home/.config/nvim/lua/mappings.lua +++ b/home/.config/nvim/lua/mappings.lua @@ -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("", "") nmap("", "") @@ -109,4 +113,3 @@ nmap("Q", ":bufdo bdelete") -- a message saying that dbext plugin isn't installed -- See :h ft-sql.txt vim.g.omni_sql_no_default_maps = 1 -