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' }) map('i', '<S-Return>', '<C-o>o', { desc = 'Start Newline' })
-- Split and join lines -- Split and join lines
map('n', '<leader>j', ':join<CR>', { desc = 'Join lines', silent = true }) map('n', '<leader>jj', ':join<CR>', { desc = 'Join lines', silent = true })
map('n', '<leader>s', 'i<CR><ESC>k', { 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 -- Re-select blocks after indenting in visual/select mode
map('x', '<', '<gv', { desc = 'Indent Right and Re-select' }) map('x', '<', '<gv', { desc = 'Indent Right and Re-select' })

View File

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

View File

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

View File

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