This commit is contained in:
2026-04-26 20:27:32 +02:00
parent 5acc1a8804
commit c472be7bf6
4 changed files with 56 additions and 6 deletions
+27 -5
View File
@@ -11,13 +11,31 @@
## Tabs ## Tabs
There are :hsplit, :vsplit commands, also :tabnew Pane movement:
- C-h : move to left pane
- C-j : move to lower pane
- C-k : move to upper pane
- C-l : move to right pane
Do leader-sf, C-t for new tab, C-v for vertical split, C-x for horizontal Pane management:
These keybinds come from telescope defaults. The tab functionality is built into - C-q : close current pane
neovim. - C-\ : vertical split
- C-S-\ : horizontal split
- <leader>po : keep current pane only
Tab cycling: gt, gT Tab management:
- <leader>tn : new tab
- <leader>tq : close tab
- <leader>to : keep current tab only
- <leader>th : previous tab
- <leader>tl : next tab
Built-in tab cycling also works:
- gt : next tab
- gT : previous tab
Neo-tree:
- C-n : toggle Neo-tree
## Autocompletes ## Autocompletes
@@ -33,3 +51,7 @@ C-k to open "documentation"
use - to stage use - to stage
use cc to commit use cc to commit
write a message and then :wq write a message and then :wq
Leader shortcuts:
- <leader>gd : vertical git diff
- <leader>gc : open fugitive git status
+10
View File
@@ -8,3 +8,13 @@ vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left wind
vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right 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-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' }) vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
vim.keymap.set('n', '<C-q>', '<cmd>close<CR>', { desc = 'Close window' })
vim.keymap.set('n', '<C-\\>', '<cmd>vsplit<CR>', { desc = 'Vertical split' })
vim.keymap.set('n', '<C-S-\\>', '<cmd>split<CR>', { desc = 'Horizontal split' })
vim.keymap.set('n', '<leader>po', '<cmd>only<CR>', { desc = 'Only pane' })
vim.keymap.set('n', '<leader>tn', '<cmd>tabnew<CR>', { desc = 'New tab' })
vim.keymap.set('n', '<leader>tq', '<cmd>tabclose<CR>', { desc = 'Close tab' })
vim.keymap.set('n', '<leader>to', '<cmd>tabonly<CR>', { desc = 'Only tab' })
vim.keymap.set('n', '<leader>th', '<cmd>tabprevious<CR>', { desc = 'Previous tab' })
vim.keymap.set('n', '<leader>tl', '<cmd>tabnext<CR>', { desc = 'Next tab' })
+7 -1
View File
@@ -1,3 +1,9 @@
---@module 'lazy' ---@module 'lazy'
---@type LazySpec ---@type LazySpec
return { 'tpope/vim-fugitive' } return {
'tpope/vim-fugitive',
keys = {
{ '<leader>gd', '<cmd>Gvdiffsplit<CR>', desc = 'Git vertical diff' },
{ '<leader>gc', '<cmd>Git<CR>', desc = 'Git status' },
},
}
+12
View File
@@ -9,4 +9,16 @@ return {
'nvim-tree/nvim-web-devicons', 'nvim-tree/nvim-web-devicons',
}, },
lazy = false, lazy = false,
keys = {
{ '<C-n>', '<cmd>Neotree toggle<CR>', desc = 'Toggle Neo-tree' },
},
---@module 'neo-tree'
---@type neotree.Config
opts = {
window = {
mappings = {
['<space>'] = 'none',
},
},
},
} }