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