diff --git a/.config/nvim/lua/plugins/marks.lua b/.config/nvim/lua/plugins/marks.lua index c1c27073..a1a333ed 100644 --- a/.config/nvim/lua/plugins/marks.lua +++ b/.config/nvim/lua/plugins/marks.lua @@ -2,7 +2,19 @@ return { "chentoast/marks.nvim", enabled = true, event = "VeryLazy", - opts = { - builtin_marks = { ".", "<", ">", "^" }, - }, + config = function() + local function fmt_prefix(prefix, mappings) + local out = {} + for k, v in pairs(mappings) do + out[k] = prefix .. v[1] + require("which-key").add({ out[k], desc = v[2] }) + end + return out + end + local opts = { + builtin_marks = { ".", "<", ">", "^" }, + mappings = {}, + } + require("marks").setup(opts) + end, }