local M = { "echasnovski/mini.clue", lazy = false, } function M.config() local miniclue = require("mini.clue") miniclue.setup({ triggers = { -- Leader triggers { mode = "n", keys = "" }, { mode = "x", keys = "" }, { mode = "v", keys = "" }, }, clues = { -- Enhance this by adding descriptions for mapping groups miniclue.gen_clues.builtin_completion(), miniclue.gen_clues.g(), miniclue.gen_clues.marks(), miniclue.gen_clues.registers(), miniclue.gen_clues.windows(), miniclue.gen_clues.z(), { mode = "n", keys = "f", desc = "[F]iles", }, { mode = "n", keys = "g", desc = "[G]o to", }, { mode = "n", keys = "r", desc = "[R]ename / [R]eplace / [R]eload", }, { mode = "n", keys = "l", desc = "[L]ocal", }, { mode = "n", keys = "w", desc = "[W]orkspace", }, { mode = "n", keys = "y", desc = "[Y]ank", }, { mode = "n", keys = "s", desc = "[S]ettings", }, { mode = "n", keys = "v", desc = "[V]imux", }, { mode = "n", keys = "h", desc = "git [h]hunks", }, { mode = "n", keys = "VH", postkeys = "V", }, { mode = "n", keys = "VJ", postkeys = "V", }, { mode = "n", keys = "VK", postkeys = "V", }, { mode = "n", keys = "VL", postkeys = "V", }, { mode = "n", keys = "Vf", postkeys = "V", }, }, }) require("my.keymaps").nmap("Q", ":wqa", "Save all files and [q]uit") end return {}