From 0cc4ed7dd6fc5b06de245246723138996d449571 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Fri, 14 Jul 2023 22:49:04 +0530 Subject: nvim: Adding basic neovim config --- .config/nvim/lua/justsaumit/which-key-config.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .config/nvim/lua/justsaumit/which-key-config.lua (limited to '.config/nvim/lua/justsaumit/which-key-config.lua') 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", "Quit"}, + Z = {":wq", "Save and Quit"}, + w = {":w", "Save"}, + x ={":bdelete", "Close"}, + f = { ":Telescope find_files", "Telescope Find Files" }, + g = { ":Telescope live_grep", "Telescope Live Grep" } +} +local opts = {prefix = ''} +wk.register(mappings, opts) -- cgit v1.2.3