split and join remap
This commit is contained in:
parent
47b0255209
commit
7de6f819ef
|
@ -388,8 +388,8 @@ M.edit = {
|
||||||
["<leader>s"] = { "s", "replace with insert mode" },
|
["<leader>s"] = { "s", "replace with insert mode" },
|
||||||
|
|
||||||
-- split and join lines
|
-- split and join lines
|
||||||
["<C-j>"] = { "<cmd>join<cr>", "join lines" },
|
["<C-J>"] = { "<cmd>join<cr>", "join lines" },
|
||||||
["<C-s>"] = { "i<cr><esc>l", "split line" },
|
["<C-S>"] = { "i<cr><esc>l", "split line" },
|
||||||
|
|
||||||
-- do something useful with the arrows
|
-- do something useful with the arrows
|
||||||
["<Up>"] = { "<cmd> move-2<cr>", "Move line up" },
|
["<Up>"] = { "<cmd> move-2<cr>", "Move line up" },
|
||||||
|
|
|
@ -627,8 +627,8 @@ local plugins = {
|
||||||
lazy = false,
|
lazy = false,
|
||||||
cmd = { "TSJJoin", "TSJSplit" },
|
cmd = { "TSJJoin", "TSJSplit" },
|
||||||
keys = {
|
keys = {
|
||||||
{ "<C-j>", "<cmd>TSJJoin<CR>" },
|
{ "<C-J>", "<cmd>TSJJoin<CR>" },
|
||||||
{ "<C-s>", "<cmd>TSJSplit<CR>" },
|
{ "<C-S>", "<cmd>TSJSplit<CR>" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue