Modified nvim keybindings and updated neotree.nvim config

This commit is contained in:
Kyren223
2024-06-30 18:41:19 +03:00
parent 51317d0329
commit 5926130df2
3 changed files with 12 additions and 10 deletions

View File

@@ -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' })