filetype

Define additional filetypes. The values can either be a literal filetype or a function taking the filepath and the buffer number.

For more information check :h vim.filetype.add()

Type: null or (submodule)

Default: null

Declared by:

filetype.extension

set filetypes matching the file extension

Type: null or (attribute set of (string or raw lua code or list of (string or (submodule))))

Default: null

Declared by:

filetype.filename

set filetypes matching the file name (or path)

Type: null or (attribute set of (string or raw lua code or list of (string or (submodule))))

Default: null

Declared by:

filetype.pattern

set filetypes matching the specified pattern

Type: null or (attribute set of (string or raw lua code or list of (string or (submodule))))

Default: null

Declared by: