diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index d6ea99c..9083d57 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -1,6 +1,7 @@ -- n, v, i, t, c = mode name.s +local o = vim.o local opt = vim.opt local g = vim.g @@ -106,6 +107,17 @@ M.general = { --{{{ -- line numbers ["N"] = { " set nu! set rnu!", "toggle line number" }, + -- toggle cmdheight + ["C"] = { + function() + local prev = o.cmdheight + if o.cmdheight > 0 then + opt.cmdheight = 0 + else + opt.cmdheight = 1 + end + end, "toggle cmd height"}, + ["ts"] = {function() if g.sign_column_enbaled then opt.signcolumn="no"