Turn off wrap, and turn it on in regular text files.

This commit is contained in:
Martin Larsson 2025-04-28 20:35:41 +02:00
parent a6145ff571
commit baaa523af9

View file

@ -95,4 +95,13 @@ opt.shortmess = "acstFOSW"
-- Allows to select one more after EOL
opt.virtualedit = "onemore"
opt.wrap = false
opt.sidescroll = 4
vim.api.nvim_create_autocmd("FileType", {
pattern = { "text", "markdown", "txt", "md", "codecompanion" },
callback = function()
vim.opt_local.wrap = true
end
})
return opt