diff options
Diffstat (limited to '.config/nvim/lua/justsaumit/which-key-config.lua')
-rw-r--r-- | .config/nvim/lua/justsaumit/which-key-config.lua | 11 |
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) |