Function chorus.filetype.setup
-
async chorus.filetype.setup(spec: (
chorus.filetype.Spec|string)):nil Configure filetypes
Also available by invoking
chorus.filetype(orfiletypeif using the default prelude).The current configuration source is suspended.
On the first
FileTypeevent for each specified filetype:Treesitter parsers will be installed if needed and configured in
specLSP will be set up if configured in
specThe current configuration source will be resumed (if still suspended), and its completion awaited.
- Parameters:
spec ((
chorus.filetype.Spec|string)) – Filetype specification