diff options
Diffstat (limited to '.config/nvim/lua/keymaps.lua')
| -rw-r--r-- | .config/nvim/lua/keymaps.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/.config/nvim/lua/keymaps.lua b/.config/nvim/lua/keymaps.lua index 95144dd..1fa730d 100644 --- a/.config/nvim/lua/keymaps.lua +++ b/.config/nvim/lua/keymaps.lua @@ -1,12 +1,16 @@ -- Misc vim.keymap.set({ 'n', 'i' }, '<C-a>', '<Esc>ggVG', { desc = 'Visually Highlight [A]ll' }) vim.keymap.set('n', '<Esc>', ':nohlsearch<CR>') +vim.keymap.set('n', '<leader>z', function() + vim.cmd('Neotree close') +end, { desc = '[Z]en Mode' }) +vim.keymap.set('n', 'U', ':redo<cr>') -- Window Navigation vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' }) +vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the down window' }) +vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the up window' }) vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' }) -vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' }) -vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' }) -- Window resizing local resize = 2 @@ -18,6 +22,3 @@ vim.keymap.set('n', '<C-Right>', string.format(':vertical resize +%d<CR>', resiz -- Keep selection after < and > vim.keymap.set('v', '<', '<gv', {}) vim.keymap.set('v', '>', '>gv', {}) - --- todo.lua -vim.keymap.set('n', '<leader>ft', ':TodoTelescope<cr>', { desc = '[F]ind [T]odos' }) |
