From 5cd9f33cd2dcd7a54fc46a57fd5402ff1c1ea276 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 28 Nov 2023 18:49:44 +0100 Subject: nvim: Add s and S for creating scratch buffers --- .config/nvim/lua/mango/remap.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.config/nvim/lua/mango/remap.lua') diff --git a/.config/nvim/lua/mango/remap.lua b/.config/nvim/lua/mango/remap.lua index dadb5c0..6de5149 100644 --- a/.config/nvim/lua/mango/remap.lua +++ b/.config/nvim/lua/mango/remap.lua @@ -44,3 +44,12 @@ remap('n', '-', ':Ex') -- bottom instead of the left or top remap('n', 'ā€“', ':vsplit | Ex') remap('n', 'gā€“', ':split | Ex') + +remap('n', 's', function() + vim.cmd('vsplit') + lib.scratch_buffer() +end) +remap('n', 'S', function() + vim.cmd('split') + lib.scratch_buffer() +end) -- cgit v1.2.3