From 557826f23a08dfeaceaf19eacb385dd53673b918 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Sat, 11 Jan 2025 00:54:54 +0100 Subject: [PATCH] Remove keybind for saving, use :w instead. Fix so copy command is silent --- home/.config/nvim/lua/keymaps.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/home/.config/nvim/lua/keymaps.lua b/home/.config/nvim/lua/keymaps.lua index e692399..a892af2 100644 --- a/home/.config/nvim/lua/keymaps.lua +++ b/home/.config/nvim/lua/keymaps.lua @@ -42,14 +42,12 @@ require("utils").add_keymaps({ cmd = " noh ", }, - -- Save - [""] = { - cmd = " w ", - }, - -- Copies the entire file [""] = { - cmd = ":silent %y+", + cmd = ":%y+", + opts = { + silent = true + } }, -- Allow moving the cursor through wrapped lines with and