fix: use different keymap for word wrap toggling

This commit is contained in:
Stevan Freeborn
2025-01-22 21:31:32 -06:00
parent f79ef968ca
commit 16260678dd
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -3,4 +3,3 @@
This is my neovim configuration. It is - as with all of us - a work in progress. If you are curious about getting started with Neovim I couldn't recommend this course from Typecraft enough: [Neovim from Scratch](https://typecraft.dev/neovim-for-noobs/)
+1 -1
View File
@@ -16,7 +16,7 @@ vim.opt.wrap = false
vim.keymap.set("n", "<leader>y", '"+y', { desc = "Yank to system clipboard" })
vim.keymap.set("v", "<leader>y", '"+y', { desc = "Yank to system clipboard" })
vim.keymap.set("n", "<leader>tw", ":set wrap!<CR>", { desc = "Toggle word wrap" })
vim.keymap.set("n", "<leader>ww", ":set wrap!<CR>", { desc = "Toggle word wrap" })
-- if i am in insert mode and i spam one of these keys
-- i probably want to escape insert mode