diff --git a/nvim/plugin/keymaps.lua b/nvim/plugin/keymaps.lua index 88d3416..de14642 100644 --- a/nvim/plugin/keymaps.lua +++ b/nvim/plugin/keymaps.lua @@ -21,20 +21,20 @@ require('which-key').add({ { ']b', "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)