lvim.keys.normal_mode[""] = "BufferClose" lvim.keys.normal_mode[""] = "w" lvim.keys.term_mode["jk"] = "" lvim.keys.visual_mode["jk"] = "" -- Which key -- lvim.builtin.which_key.mappings.l.a = { "Telescope lsp_code_actions", "Code Actions" } lvim.builtin.which_key.mappings.l.d = { "TroubleToggle", "Diagnostics" } lvim.builtin.which_key.mappings.l.R = { "TroubleToggle lsp_references", "References" } lvim.builtin.which_key.mappings.s.P = { "Telescope projects", "Projects" } lvim.builtin.which_key.mappings["t"] = { name = "Test", t = { "Ultest", "Run tests" }, s = { "UltestStop", "Stop tests" }, c = { "UltestClear", "Clear result" }, n = { "UltestNearest", "Run test" }, o = { "UltestOutput", "Show output" }, j = { "(ultest-next-fail)", "Next fail" }, k = { "(ultest-prev-fail)", "Prev fail" }, } -- Beffers lvim.keys.normal_mode[""] = "BufferLast" local fmt = string.format for i = 1, 9 do lvim.keys.normal_mode[fmt("", i)] = fmt("BufferGoto %d", i) end