diff --git a/nvim/.config/nvim/README.md b/nvim/.config/nvim/README.md index ee26c96..0b78fe1 100644 --- a/nvim/.config/nvim/README.md +++ b/nvim/.config/nvim/README.md @@ -6,6 +6,8 @@ Inspirations: # Neovim Notes +See custom keymaps with short descriptions with `h`. + Split shortcuts: - `sv` open a vertical split diff --git a/nvim/.config/nvim/lua/romanzy/remap.lua b/nvim/.config/nvim/lua/romanzy/remap.lua index ae9d8c0..ed435b3 100644 --- a/nvim/.config/nvim/lua/romanzy/remap.lua +++ b/nvim/.config/nvim/lua/romanzy/remap.lua @@ -19,6 +19,7 @@ local function telescope_picker(picker) end map("n", "r", ":source ~/.config/nvim/init.lua", { desc = "reload init.lua" }) +map("n", "h", telescope_picker("keymaps"), { desc = "show keymaps" }) map("n", "dl", "Oil", { desc = "open oil" }) map("n", "ff", telescope_picker("find_files"), { desc = "find files" }) map("n", "fg", telescope_picker("live_grep"), { desc = "live grep" })