mirror of
https://github.com/neovim/neovim.git
synced 2026-04-19 22:10:45 +00:00
docs: misc
Co-authored-by: Jan Weinkauff <jan@weinkauff.cloud> Co-authored-by: MeanderingProgrammer <meanderingprogrammer@gmail.com> Co-authored-by: Yochem van Rosmalen <git@yochem.nl> Co-authored-by: phanium <91544758+phanen@users.noreply.github.com>
This commit is contained in:
committed by
Christian Clason
parent
1deba926c4
commit
4367441213
@@ -430,7 +430,7 @@ end
|
||||
--- Can be used in an ftplugin or FileType autocommand.
|
||||
---
|
||||
--- Note: By default, disables regex syntax highlighting, which may be required for some plugins.
|
||||
--- In this case, add `vim.bo.syntax = 'on'` after the call to `start`.
|
||||
--- In this case, add `vim.bo.syntax = 'ON'` after the call to `start`.
|
||||
---
|
||||
--- Note: By default, the highlighter parses code asynchronously, using a segment time of 3ms.
|
||||
---
|
||||
@@ -440,7 +440,7 @@ end
|
||||
--- vim.api.nvim_create_autocmd( 'FileType', { pattern = 'tex',
|
||||
--- callback = function(args)
|
||||
--- vim.treesitter.start(args.buf, 'latex')
|
||||
--- vim.bo[args.buf].syntax = 'on' -- only if additional legacy syntax is needed
|
||||
--- vim.bo[args.buf].syntax = 'ON' -- only if additional legacy syntax is needed
|
||||
--- end
|
||||
--- })
|
||||
--- ```
|
||||
|
||||
Reference in New Issue
Block a user