summaryrefslogtreecommitdiff
path: root/lua/binds.lua
diff options
context:
space:
mode:
authorIan Griffin <migriffin@disroot.org>2022-09-30 20:06:55 +0800
committerIan Griffin <migriffin@disroot.org>2022-09-30 20:06:55 +0800
commit0e1bf5aad478a4030f31acd8bbea874b71e42f43 (patch)
treeb31312df0273548387a613ff2f4e00bc6828b379 /lua/binds.lua
initial commit
Diffstat (limited to 'lua/binds.lua')
-rw-r--r--lua/binds.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/lua/binds.lua b/lua/binds.lua
new file mode 100644
index 0000000..6f00728
--- /dev/null
+++ b/lua/binds.lua
@@ -0,0 +1,26 @@
+--
+-- Configuration Tools
+--
+local ct = require('conftool')
+local defs = require('defs')
+
+--
+-- Maps
+--
+-- select all
+ct.map('n', '<C-a>', '<esc>ggVG<LF>')
+--[[
+-- spawn terminal
+ct.map('n', '<C-M-t>', ':!' .. defs.external_term .. ' . &<LF><LF>')
+-- spwan file manager
+ct.map('n', '<C-M-f>', ':!' .. defs.external_filemgr .. ' . &<LF><LF>')
+]]
+-- spellchecking
+ct.map('n', '<C-s>', ':set spell!<LF>')
+
+--
+-- Commands
+--
+ct.defcmd('Xrdb', '!xrdb %')
+ct.defcmd('ExTerm', '!' .. defs.external_term .. '&<LF><LF>')
+ct.defcmd('ExFileMgr', '!' .. defs.external_filemgr .. '&<LF><LF>')