summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/justsaumit/which-key-config.lua
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-07-14 22:49:04 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-07-14 22:49:04 +0530
commit0cc4ed7dd6fc5b06de245246723138996d449571 (patch)
treeb8de0f83a99e0123bf740b9c8a278c9cbdc039e9 /.config/nvim/lua/justsaumit/which-key-config.lua
parent193034436557fb26adbc26f5fbd847016f6fe0be (diff)
nvim: Adding basic neovim config
Diffstat (limited to '.config/nvim/lua/justsaumit/which-key-config.lua')
-rw-r--r--.config/nvim/lua/justsaumit/which-key-config.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/nvim/lua/justsaumit/which-key-config.lua b/.config/nvim/lua/justsaumit/which-key-config.lua
new file mode 100644
index 0000000..b438f7e
--- /dev/null
+++ b/.config/nvim/lua/justsaumit/which-key-config.lua
@@ -0,0 +1,11 @@
+local wk = require("which-key")
+local mappings = {
+ q = {":q<CR>", "Quit"},
+ Z = {":wq<CR>", "Save and Quit"},
+ w = {":w<CR>", "Save"},
+ x ={":bdelete<CR>", "Close"},
+ f = { ":Telescope find_files<cr>", "Telescope Find Files" },
+ g = { ":Telescope live_grep<cr>", "Telescope Live Grep" }
+}
+local opts = {prefix = '<leader>'}
+wk.register(mappings, opts)