diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 75cea58..1b1a144 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -5,6 +5,8 @@ vim.opt.hlsearch = true vim.keymap.set('n', '', 'nohlsearch') +-- FIXME: Port to current API + -- Diagnostic keymaps ---@diagnostic disable-next-line: deprecated vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' }) @@ -15,6 +17,9 @@ vim.keymap.set('n', 'e', vim.diagnostic.open_float, { desc = 'Show diagn vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) vim.keymap.set('n', 'l', 'Lazy', { desc = 'Lazy plugin manager' }) + +-- This is useful for quickly rerunning make or other similar tools +-- TODO: Reconsider binds vim.keymap.set('n', '1', '!!', { desc = 'Run last command' }) -- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier @@ -81,6 +86,7 @@ vim.keymap.set('n', 'd', 'tabclose', { desc = 'Close Tab' vim.keymap.set('n', ']', 'tabnext', { desc = 'Next Tab' }) vim.keymap.set('n', '[', 'tabprevious', { desc = 'Previous Tab' }) +-- FIXME: These binds are not well considered vim.keymap.set('n', '\\', 'Neotree toggle', { desc = 'Toggle Neotree' }) vim.keymap.set('n', '0', 'ToggleTerm', { desc = 'Toggle Terminal' })