join fixes
This commit is contained in:
parent
7de6f819ef
commit
d7b22ff55b
|
@ -1,4 +1,5 @@
|
||||||
---@type MappingsTable
|
---@type MappingsTable
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
-- NOTE: The mappings here are case sensitive!!! Removing a specific default
|
-- NOTE: The mappings here are case sensitive!!! Removing a specific default
|
||||||
|
@ -388,8 +389,9 @@ 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" },
|
["J"] = { "j" },
|
||||||
["<C-S>"] = { "i<cr><esc>l", "split line" },
|
["<C-s-j>"] = { "<cmd>join<cr>", "join lines" },
|
||||||
|
["<C-s-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-s-J>", "<cmd>TSJJoin<CR>" },
|
||||||
{ "<C-S>", "<cmd>TSJSplit<CR>" },
|
{ "<C-s-S>", "<cmd>TSJSplit<CR>" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue