add keymapping to toggle word wrapping on/off

This commit is contained in:
Gered 2024-09-08 18:46:53 -04:00
parent 905efed668
commit 42da8e2330

View file

@ -32,4 +32,7 @@ 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' })
-- Toggling word wrap on/off
vim.keymap.set('n', '<leader>tw', '<Cmd>set wrap!<CR>', { desc = 'Toggle: [W]ord wrapping' })
-- vim: ts=2 sts=2 sw=2 et -- vim: ts=2 sts=2 sw=2 et