> ~ biozz / Blog

New NeoVim plugin - mini.clue 2023-08-04

Switching to mini.clue from which-key.nvim and praising mini.nvim

Reading time: 2m (235 words)

First of all, mini.nvim is awesome. I am gradually switching to them and one of the latest additions is mini.clue.

When you add lots of functionality to your config you can be lost in key mappings. This is where this plugin comes in handy. There are a couple of alternatives out there:

They all do great job, but I feel like mini.nvim is going to conquer the most used plugins becuase of its philosophy. I bet ultimately they are going to make their own mini NeoVim distro.

I used slightly modified suggested configuration:

local miniclue = require("mini.clue")
miniclue.setup({
	triggers = {
		{ mode = "n", keys = "<Leader>" },
		{ mode = "x", keys = "<Leader>" },
		{ mode = "n", keys = "g" },
		{ mode = "x", keys = "g" },
		{ mode = "n", keys = "'" },
		{ mode = "x", keys = "'" },
		{ mode = "n", keys = '"' },
		{ mode = "x", keys = '"' },
		{ mode = "n", keys = "z" },
		{ mode = "x", keys = "z" },
	},
	clues = {
		miniclue.gen_clues.builtin_completion(),
		miniclue.gen_clues.g(),
		miniclue.gen_clues.registers(),
		miniclue.gen_clues.z(),
	},
})

Plugin Graveyard

Ah, yes, the one we say goodbyes to this time… folke/which-key.nvim was a true friend, but we became very distant as my muscle memory improved. It served well to me and I hope it will do the same for others.