feat: add base config

This commit is contained in:
tsorabel-pc 2024-03-06 21:42:29 +01:00 committed by tsorabel
parent 93fde0556e
commit f1894507ad
2 changed files with 24 additions and 7 deletions

6
lua/custom/mappings.lua Normal file
View file

@ -0,0 +1,6 @@
local map = vim.keymap.set
map({ 'n' }, '<leader>cw', ':%s/\\<<C-r><C-w>\\>/<C-r><C-w>/gI<Left><Left><Left>', { desc = '[C]ut [W]orld' })
map({ 'n' }, '<leader>x', '<cmd>bd<CR>', { desc = 'Close buffer' })
map('n', 'n', 'nzzzv')
map('n', 'N', 'Nzzzv')