This commit is contained in:
Delvin Yamoah 2026-03-19 20:03:48 +00:00
parent 3991c3490a
commit 4be057189e
1 changed files with 13 additions and 3 deletions

View File

@ -145,6 +145,14 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
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' })
-- Handling splits
vim.opt.splitright = true
-- NOTE: I used the arrow keys because my terminal has this set to some distint keycodes... just as TJ said in the NOTE below
vim.keymap.set('n', '<C-S-Left>', '<C-w>H', { desc = 'Move window to the left' })
vim.keymap.set('n', '<C-S-Right>', '<C-w>L', { desc = 'Move window to the right' })
vim.keymap.set('n', '<C-S-Down>', '<C-w>J', { desc = 'Move window to the lower' })
vim.keymap.set('n', '<C-S-Up>', '<C-w>K', { desc = 'Move window to the upper' })
-- NOTE: Some terminals have colliding keymaps or are not able to send distinct keycodes -- NOTE: Some terminals have colliding keymaps or are not able to send distinct keycodes
-- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" }) -- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" })
-- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" }) -- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" })
@ -780,14 +788,16 @@ require('lazy').setup({
-- Examples: -- Examples:
-- - va) - [V]isually select [A]round [)]paren -- - va) - [V]isually select [A]round [)]paren
-- - yinq - [Y]ank [I]nside [N]ext [Q]uote -- - yinq - [Y]ank [I]nside [N]ext [Q]uote
-- - ci' - [C]hange [I]nside [']quote -- - ci' - [C]hange [I]nside ["]quote
require('mini.ai').setup { n_lines = 500 } require('mini.ai').setup { n_lines = 500 }
-- this is not mini but yuh, good to know, cib, cab, vib vab yib, yab: [A]round and [I]nside [B]rackets, doesnt matter what bracket that is, just be on or inside it
-- If you wnat ot be specific, then yuh, use {} or [] or ()
-- Add/delete/replace surroundings (brackets, quotes, etc.) -- Add/delete/replace surroundings (brackets, quotes, etc.)
-- 'quotes' on [ quotes ] -- "quotes' on [ quotes ]
-- - saiw) - [(S)][ urround ] [A]dd [I]nner [W]ord [)]Paren -- - saiw) - [(S)][ urround ] [A]dd [I]nner [W]ord [)]Paren
-- - sd' - [S]urround [D]elete [']quotes -- - sd' - [S]urround [D]elete [']quotes
-- - sr)' - [S]urround [R]eplace [)] ['] -- - sr)" - [S]urround [R]eplace [)] ["], this an be used with any symbols of your choice
require('mini.surround').setup() require('mini.surround').setup()
-- Simple and easy statusline. -- Simple and easy statusline.