set wrap for some fts
This commit is contained in:
parent
7698683a7b
commit
58f3d1d4c6
|
@ -1,5 +1,19 @@
|
||||||
local augroup = vim.api.nvim_create_augroup('plex_generic_autocmds', {})
|
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
|
-- always use the tex filetype for latex things, as those are most supported by
|
||||||
-- latex language servers.
|
-- latex language servers.
|
||||||
vim.api.nvim_create_autocmd('FileType', {
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
|
Loading…
Reference in New Issue