Skip to content

Commit c52c00f

Browse files
committed
feat: add <LocalLeader>cm keybind for code block magnification
1 parent 5febc48 commit c52c00f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lua/neorg/modules/core/keybinds/module.lua

+7
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@ module.private = {
325325
-- Insert a link to a date at the given position
326326
-- ^Insert Date
327327
{ "<LocalLeader>id", "<Plug>(neorg.tempus.insert-date)", opts = { desc = "[neorg] Insert Date" } },
328+
329+
-- Magnifies a code block to a separate buffer.
330+
-- ^Code Magnify
331+
{ "<LocalLeader>cm", "<Plug>(neorg.looking-glass.magnify-code-block)", opts = { desc = "[neorg] Magnify Code Block" } },
328332
},
329333

330334
i = {
@@ -334,10 +338,13 @@ module.private = {
334338
"<Plug>(neorg.promo.promote)",
335339
opts = { desc = "[neorg] Promote Object (Recursively)" },
336340
},
341+
337342
-- Demote an object recursively
338343
{ "<C-d>", "<Plug>(neorg.promo.demote)", opts = { desc = "[neorg] Demote Object (Recursively)" } },
344+
339345
-- Create an iteration of e.g. a list item
340346
{ "<M-CR>", "<Plug>(neorg.itero.next-iteration)", opts = { desc = "[neorg] Continue Object" } },
347+
341348
-- Insert a link to a date at the current cursor position
342349
-- ^Date
343350
{

0 commit comments

Comments
 (0)