diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-13 01:14:11 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-13 01:14:28 +0200 |
commit | 381feb05d59b4f1214b773e39d6c94bf7afe178b (patch) | |
tree | 0bb3f6c80ce67aa5a596f6ce020d784fcbe78566 | |
parent | 716c617a2a1363681212a41a9b90f1b20a370be8 (diff) |
nvim: Use <Leader>s and <Leader>S for scratch buffers
-rw-r--r-- | .config/nvim/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index db6c807..ffe7b3d 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -96,11 +96,11 @@ vim.keymap.set('n', 'gJ', function() ]] end, { desc = '[J]oin lines without whitespace' }) -vim.keymap.set('n', '<Leader>k', function() +vim.keymap.set('n', '<Leader>s', function() vim.cmd 'vsplit' mk_scratch_buffer() end, { desc = 'Open the scratch buffer in a vertical split' }) -vim.keymap.set('n', '<Leader>K', function() +vim.keymap.set('n', '<Leader>S', function() vim.cmd 'split' mk_scratch_buffer() end, { desc = 'Open the scratch buffer in a horizontal split' }) |