local M = { "dccsillag/magma-nvim", cmd = "MagmaInit", config = function() local prefix = "M" local status, wk = pcall(require, "which-key") if status then wk.register({ [prefix] = { desc = "[M]agma", }, }) end vim.keymap.set( "n", prefix .. "e", "MagmaEvaluateOperator", { expr = true, silent = true, desc = "[E]valuate motion" } ) vim.keymap.set( "n", prefix .. "ee", "MagmaEvaluateLine", { silent = true, desc = "[E]valuate line" } ) vim.keymap.set( "n", prefix .. "r", "MagmaReevaluateCell", { silent = true, desc = "[R]e-evaluate cell" } ) vim.keymap.set( "n", prefix .. "d", "MagmaDelete", { silent = true, desc = "[D]elete cell" } ) vim.keymap.set( "n", prefix .. "o", "MagmaShowOutput", { silent = true, desc = "Show [o]utput" } ) vim.keymap.set( "v", prefix .. "e", "MagmaEvaluateVisual", { silent = true, desc = "[E]vluate visual selection" } ) end, } return M