set wrap for some fts

This commit is contained in:
Christoph J. Scherr 2024-07-09 01:25:42 +02:00
parent 7698683a7b
commit 58f3d1d4c6
1 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,19 @@
local augroup = vim.api.nvim_create_augroup('plex_generic_autocmds', {})
-- enable text wrapping for text filetypes
vim.api.nvim_create_autocmd('FileType', {
group = augroup,
pattern = {
'tex',
'text',
'markdown',
'help',
},
callback = function()
vim.opt_local.wrap = true
end,
})
-- always use the tex filetype for latex things, as those are most supported by
-- latex language servers.
vim.api.nvim_create_autocmd('FileType', {