fix: use different keymap for word wrap toggling
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user