From bbe972cfc2bf7b0bb81180e340938fe7cae7c869 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 1 Mar 2024 10:36:35 +0100 Subject: [PATCH] nvim: Fix mini mapping descriptions --- nvim/.config/nvim/lua/plugins/core.lua | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/core.lua b/nvim/.config/nvim/lua/plugins/core.lua index 971ac51..baf7705 100644 --- a/nvim/.config/nvim/lua/plugins/core.lua +++ b/nvim/.config/nvim/lua/plugins/core.lua @@ -185,13 +185,26 @@ return { end, event = "VimEnter", -- need to load pretty soon for Starter screen keys = { - { "sm", ":lua MiniMap.toggle()", { silent = true, desc = "minimap" } }, - { "ss", ":lua MiniStarter.open()", { desc = "startpage" } }, + { + "sm", + function() + require("mini.map").toggle() + end, + silent = true, desc = "minimap" , + }, + { + "ss", + function() + require("mini.starter").open() + end, + silent = true, desc = "startpage" , + }, { "w", function() require("mini.trailspace").trim() end, + desc = "Trim trailing whitespace", }, }, },