diff --git a/lua/custom/init.lua b/lua/custom/init.lua index 609b5b6..115e432 100644 --- a/lua/custom/init.lua +++ b/lua/custom/init.lua @@ -52,7 +52,7 @@ opt.startofline = false -- Cursor in same column for few commands opt.splitbelow = true -- Splits open bottom right opt.splitright = true opt.breakindentopt = { shift = 2, min = 20 } -opt.formatoptions = "qnlmBjpt" -- see :h fo-table & :h formatoptions +opt.formatoptions = "qnlmBjp" -- see :h fo-table & :h formatoptions -- Diff -- === diff --git a/lua/custom/mappings.lua b/lua/custom/mappings.lua index 937c3a6..cc07fa9 100644 --- a/lua/custom/mappings.lua +++ b/lua/custom/mappings.lua @@ -399,7 +399,6 @@ M.edit = { ["s"] = { "s", "replace with insert mode" }, -- split and join lines - ["J"] = { "j" }, [""] = { "join", "join lines" }, [""] = { "il", "split line" }, @@ -437,6 +436,7 @@ M.edit = { [""] = { ":move'>+gv=gv", "Move lines down", opts = { silent = true } }, [""] = { ""] = { ">gv", "More indentation" }, + ["fl"] = {":!fmt -w80", "Reorder lines"} }, x = {}, t = {