From 0780541cc13dec5de9025073d7e0ce007a28919a Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Fri, 12 Apr 2024 20:52:47 +0200 Subject: [PATCH] Add binds for closing window, and copying the entire buffer --- nvim/lua/keymaps.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nvim/lua/keymaps.lua b/nvim/lua/keymaps.lua index 0372e4c..3072394 100644 --- a/nvim/lua/keymaps.lua +++ b/nvim/lua/keymaps.lua @@ -32,6 +32,11 @@ require("utils").add_keymaps({ cmd = "l", }, + -- Window + ["x"] = { + cmd = "q", + }, + -- Disable current highlights [""] = { cmd = " noh ", @@ -44,7 +49,7 @@ require("utils").add_keymaps({ -- Copies the entire file [""] = { - cmd = "ggyG ", + cmd = ":silent %y+", }, -- Allow moving the cursor through wrapped lines with and