keybind to toggle line wrap

This commit is contained in:
Antoine Vaure 2025-07-28 17:27:55 +02:00
parent 27701b7ba4
commit 91e4921619

View file

@ -47,6 +47,8 @@ for _, key in ipairs({"A", "Z", "E", "Q", "S", "D"}) do
s({ 'n' }, "<A-" .. string.lower(key) .. ">", "g'" .. key, { desc = "Jump to mark " .. key }) s({ 'n' }, "<A-" .. string.lower(key) .. ">", "g'" .. key, { desc = "Jump to mark " .. key })
end end
s("n", "<leader>tw", "<cmd> set wrap! <cr>", { desc = "toggle line wrap" })
function copy_filename_and_line () function copy_filename_and_line ()
local filename = vim.fn.expand("%:t") local filename = vim.fn.expand("%:t")
local line = vim.fn.line(".") local line = vim.fn.line(".")