From 8ad3a834ce4908ede47abff91fbfa2ae680d04e7 Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Thu, 26 Sep 2024 00:01:48 +0200 Subject: [PATCH] chore(keymaps): Streamline keymaps - Change `` to `BufferLineCycleNext", desc = 'next [b]uffer' }, { '[B', vim.cmd.bfirst, desc = 'first [B]uffer' }, { ']B', vim.cmd.blast, desc = 'last [B]uffer' }, - { 'tn', vim.cmd.tabnew, desc = '[t]ab: [n]ew' }, + { 'tn', vim.cmd.tabnew, desc = '[t]ab: [n]ew' }, { 'tq', "bd", desc = '[t]ab: [q]uit/close' }, { 'c', "bd", desc = '[c]lose tab' }, -- Window resizing - { "", "resize +2", desc = "resize split up" }, - { "", "resize -2", desc = "resize split down" }, - { "", "vertical resize -2", desc = "resize split left" }, - { "", "vertical resize +2", desc = "resize split right" }, + { "", "resize -2", desc = "resize split up" }, + { "", "resize +2", desc = "resize split down" }, + { "", "vertical resize +2", desc = "resize split left" }, + { "", "vertical resize -2", desc = "resize split right" }, -- ToggleTerm - { "Tf", "ToggleTerm direction=float", desc = "[T]oggleTerm [f]loat" }, - { "Th", "ToggleTerm size=10 direction=horizontal", desc = "[T]oggleTerm [h]orizontal split" }, - { "Tv", "ToggleTerm size=80 direction=vertical", desc = "[T]oggleTerm [v]ertical split" }, + { "Tf", "ToggleTerm direction=float", desc = "[T]oggleterm [f]loat" }, + { "Th", "ToggleTerm size=10 direction=horizontal", desc = "[T]oggleterm [h]orizontal split" }, + { "Tv", "ToggleTerm size=80 direction=vertical", desc = "[T]oggleterm [v]ertical split" }, { "", 'execute v:count . "ToggleTerm"', desc = "Toggle terminal" }, { mode = "t", "", "ToggleTerm", desc = "Toggle terminal" }, { mode = "i", "", "ToggleTerm", desc = "Toggle terminal" }, @@ -159,7 +159,7 @@ end, { expr = true, desc = "expand to current buffer's directory" }) local severity = diagnostic.severity -keymap.set('n', 'le', function() +keymap.set('n', 'le', function() local _, winid = diagnostic.open_float(nil, { scope = 'line' }) if not winid then vim.notify('no diagnostics found', vim.log.levels.INFO)