keybind to toggle line wrap
This commit is contained in:
parent
27701b7ba4
commit
91e4921619
1 changed files with 2 additions and 0 deletions
|
|
@ -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(".")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue