Wrap lines of asciidoc and markdown files

Many projects use markdown or asciidoc and write "endless" lines. That's
annoying on it's own, but not having them wrapped is even more annoying.
So, this change simply wraps these lines to make them more accessible
for me.
This commit is contained in:
2026-03-01 17:12:56 +01:00
parent 9365cc4fee
commit 4f5d215496

View File

@@ -135,6 +135,26 @@ vim.api.nvim_create_autocmd("FileType", {
vim.opt_local.tabstop = 4 vim.opt_local.tabstop = 4
end, end,
}) })
-- markdown
vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown",
group = configgroup,
callback = function()
vim.opt_local.shiftwidth = 4
vim.opt_local.tabstop = 4
vim.opt.wrap = true
end,
})
-- asciidoc
vim.api.nvim_create_autocmd("FileType", {
pattern = "asciidoc",
group = configgroup,
callback = function()
vim.opt_local.shiftwidth = 4
vim.opt_local.tabstop = 4
vim.opt.wrap = true
end,
})
-- i3config -- i3config
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
pattern = "i3config", pattern = "i3config",