diff --git a/nvim/plugin/keymaps.lua b/nvim/plugin/keymaps.lua index 3d5a931..16e3724 100644 --- a/nvim/plugin/keymaps.lua +++ b/nvim/plugin/keymaps.lua @@ -129,11 +129,12 @@ keymap.set('c', '%%', function() end, { expr = true, desc = "expand to current buffer's directory" }) keymap.set('n', 'tn', vim.cmd.tabnew, { desc = '[t]ab: [n]ew' }) -keymap.set('n', 'tq', vim.cmd.tabclose, { desc = '[t]ab: [q]uit/close' }) +-- keymap.set('n', 'tq', vim.cmd.tabclose, { desc = '[t]ab: [q]uit/close' }) +keymap.set('n', 'tq', "bd", { desc = '[t]ab: [q]uit/close' }) local severity = diagnostic.severity -keymap.set('n', 'e', 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) @@ -186,6 +187,11 @@ keymap.set('n', '', 'zz', { desc = 'move [u]p half-page and center' }) keymap.set('n', '', 'zz', { desc = 'move DOWN [f]ull-page and center' }) keymap.set('n', '', 'zz', { desc = 'move UP full-page and center' }) +keymap.set('n', '', 'wincmd h', { desc = 'focus left window' }) +keymap.set('n', '', 'wincmd j', { desc = 'focus bottom window' }) +keymap.set('n', '', 'wincmd k', { desc = 'focus top window' }) +keymap.set('n', '', 'wincmd l', { desc = 'focus right window' }) + --- Disabled keymaps [enable at your own risk] -- Automatic management of search highlight diff --git a/nvim/plugin/telescope.lua b/nvim/plugin/telescope.lua index c8d9c28..1a7dc08 100644 --- a/nvim/plugin/telescope.lua +++ b/nvim/plugin/telescope.lua @@ -86,7 +86,7 @@ vim.keymap.set( vim.keymap.set('n', '*', builtin.grep_string, { desc = '[telescope] grep current string [*]' }) vim.keymap.set('n', 'tg', project_files, { desc = '[t]elescope project files [g]' }) vim.keymap.set('n', 'tc', builtin.quickfix, { desc = '[t]elescope quickfix list [c]' }) -vim.keymap.set('n', 'tq', builtin.command_history, { desc = '[t]elescope command history [q]' }) +vim.keymap.set('n', 'tQ', builtin.command_history, { desc = '[t]elescope command history [Q]' }) vim.keymap.set('n', 'tl', builtin.loclist, { desc = '[t]elescope [l]oclist' }) vim.keymap.set('n', 'tr', builtin.registers, { desc = '[t]elescope [r]egisters' }) vim.keymap.set('n', 'tbb', builtin.buffers, { desc = '[t]elescope [b]uffers [b]' })