From a01147f661e4e3ce3fd3a87f68512dc303a603b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 19 Dec 2023 14:25:33 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(nvim):=20add=20sile?= =?UTF-8?q?nt=20and=20description=20to=20some=20keymaps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/config/keymaps.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index e2683d62..1fe7c3d8 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -57,10 +57,10 @@ map("n", "", "_", { desc = "First character of Line" }) map("n", "", "$", { desc = "Last character of Line" }) -- Copy whole text to clipboard -map("n", "", ":%y+") +map("n", "", ":%y+", { desc = "Copy whole text to clipboard", silent = true }) -- Select all text -map("n", "", "ggG") +map("n", "", "ggG", { desc = "Select all text", silent = true }) -- Better paste -- remap "p" in visual mode to delete the highlighted text without overwriting your yanked/copied text, and then paste the content from the unnamed register.