Turn off wrap, and turn it on in regular text files.
This commit is contained in:
parent
a6145ff571
commit
baaa523af9
1 changed files with 9 additions and 0 deletions
|
|
@ -95,4 +95,13 @@ opt.shortmess = "acstFOSW"
|
||||||
-- Allows to select one more after EOL
|
-- Allows to select one more after EOL
|
||||||
opt.virtualedit = "onemore"
|
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
|
return opt
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue