split and join remap

This commit is contained in:
Christoph J. Scherr 2024-01-21 22:10:14 +01:00
parent 47b0255209
commit 7de6f819ef
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
2 changed files with 4 additions and 4 deletions

View File

@ -388,8 +388,8 @@ M.edit = {
["<leader>s"] = { "s", "replace with insert mode" },
-- split and join lines
["<C-j>"] = { "<cmd>join<cr>", "join lines" },
["<C-s>"] = { "i<cr><esc>l", "split line" },
["<C-J>"] = { "<cmd>join<cr>", "join lines" },
["<C-S>"] = { "i<cr><esc>l", "split line" },
-- do something useful with the arrows
["<Up>"] = { "<cmd> move-2<cr>", "Move line up" },

View File

@ -627,8 +627,8 @@ local plugins = {
lazy = false,
cmd = { "TSJJoin", "TSJSplit" },
keys = {
{ "<C-j>", "<cmd>TSJJoin<CR>" },
{ "<C-s>", "<cmd>TSJSplit<CR>" },
{ "<C-J>", "<cmd>TSJJoin<CR>" },
{ "<C-S>", "<cmd>TSJSplit<CR>" },
},
},
{