s is free

This commit is contained in:
Christoph J. Scherr 2023-09-06 18:49:11 +02:00
parent 4f2f09dda3
commit 07f6506c5c
4 changed files with 10 additions and 10 deletions

View File

@ -116,8 +116,8 @@ map('n', 'o', 'o', { desc = 'Insert newline below' })
map('i', '<S-Return>', '<C-o>o', { desc = 'Start Newline' })
-- Split and join lines
map('n', '<leader>j', ':join<CR>', { desc = 'Join lines', silent = true })
map('n', '<leader>s', 'i<CR><ESC>k', { desc = 'Join lines', silent = true })
map('n', '<leader>jj', ':join<CR>', { desc = 'Join lines', silent = true })
map('n', '<leader>ss', 'i<CR><ESC>k', { desc = 'Join lines', silent = true })
-- Re-select blocks after indenting in visual/select mode
map('x', '<', '<gv', { desc = 'Indent Right and Re-select' })

View File

@ -219,7 +219,7 @@ return {
end,
opts = {
mappings = {
add = 'sa', -- Add surrounding in Normal and Visual modes
add = '<leader>sa', -- Add surrounding in Normal and Visual modes
delete = 'ds', -- Delete surrounding
find = 'gzf', -- Find surrounding (to the right)
find_left = 'gzF', -- Find surrounding (to the left)
@ -281,13 +281,13 @@ return {
'echasnovski/mini.splitjoin',
keys = {
{
'sj',
'<leader>sj',
'<cmd>lua MiniSplitjoin.join()<CR>',
mode = { 'n', 'x' },
desc = 'Join arguments',
},
{
'sk',
'<leader>sk',
'<cmd>lua MiniSplitjoin.split()<CR>',
mode = { 'n', 'x' },
desc = 'Split arguments',

View File

@ -187,7 +187,7 @@ return {
'ggandor/leap.nvim',
-- stylua: ignore
keys = {
{ 'tt', '<Plug>(leap-forward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap forward to' },
{ 't', '<Plug>(leap-forward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap forward to' },
{ 'T', '<Plug>(leap-backward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap backward to' },
{ '<leader>wt', '<Plug>(leap-from-window)', mode = { 'n', 'x', 'o' }, desc = 'Leap from windows' },
},
@ -405,8 +405,8 @@ return {
local mappings = {
{ '-', pick_window, desc = 'Pick window' },
{ 'sp', pick_window, desc = 'Pick window' },
{ 'sw', swap_window, desc = 'Swap picked window' },
{ '<leader>wp', pick_window, desc = 'Pick window' },
{ '<leader>ww', swap_window, desc = 'Swap picked window' },
}
return vim.list_extend(mappings, keys)
end,

View File

@ -3,8 +3,8 @@ return {
'Wansmer/treesj',
cmd = { 'TSJJoin', 'TSJSplit' },
keys = {
{ 'sj', '<cmd>TSJJoin<CR>' },
{ 'sk', '<cmd>TSJSplit<CR>' },
{ '<leader>sj', '<cmd>TSJJoin<CR>' },
{ '<leader>sk', '<cmd>TSJSplit<CR>' },
},
},
}