AutoYADM commit: 2024-12-12 21:40:04

This commit is contained in:
Daniel Fichtinger 2024-12-12 21:40:04 -05:00
parent 490d821b4e
commit 54ddc6e34e

View file

@ -1,3 +1,39 @@
local prefix = "<leader>m"
local function fmt_prefix(mappings)
for k, v in pairs(mappings) do
mappings[k] = prefix .. v
end
end
local opts = {
force_mappings = {
nv = {
motions = fmt_prefix({
new_trail_mark = "n",
track_back = "<A-b>",
peek_move_next_down = "<A-J>",
peek_move_previous_up = "<A-K>",
move_to_nearest = "<A-n>",
toggle_trail_mark_list = "<A-m>",
}),
actions = fmt_prefix({
delete_all_trail_marks = "<A-L>",
paste_at_last_trail_mark = "<A-p>",
paste_at_all_trail_marks = "<A-P>",
set_trail_mark_select_mode = "<A-t>",
switch_to_next_trail_mark_stack = "<A-.>",
switch_to_previous_trail_mark_stack = "<A-,>",
set_trail_mark_stack_sort_mode = "<A-s>",
}),
},
},
}
print(vim.inspect(opts.force_mappings.nv.motions))
return {
"LeonHeidelbach/trailblazer.nvim",
-- config = function()
-- require("which-key").add({
-- { "<leader>m", group = "Trailblazer" },
-- })
-- require("trailblazer").setup(opts)
-- end,
}