Home Explore Blog CI



neovim

15th chunk of `runtime/doc/filetype.txt`
af2c96026ebf9e48af28c2be543a8860644b43c2bfae5a6b0000000100000f20
        | - "line1"
          | - "line2"
<
      This is equivalent to >

        Register with timestamp 1970-01-01T00:00:00:
          % Key  Description  Value
          + rc   contents     ["line1", "line2"]
<
      Such syntax is automatically used if array representation appears to be
      too lengthy.
   2. "  @  Description__  Value": array header.  Same as map, but key is
      omitted and description cannot be omitted.  Array entries start with
      "  -". Example: >

        History entry with timestamp 1970-01-01T00:00:00:
          @ Description_  Value
          - history type  SEARCH
          - contents      "foo"
          - separator     '/'
<
      is equivalent to >

        History entry with timestamp 1970-01-01T00:00:00:
          = [SEARCH, "foo", '/']
<
      Note: special array syntax for register entries is not recognized here.
   3. "  = {msgpack-value}": raw values.  |{msgpack-value}| in this case may
      have absolutely any type.  Special array syntax for register entries is
      not recognized here as well.


RUST							*ft-rust*

Since the text for this plugin is rather long it has been put in a separate
file: |ft_rust.txt|.


SQL							*ft-sql*

Since the text for this plugin is rather long it has been put in a separate
file: |ft_sql.txt|.


TEX						*ft-tex-plugin* *g:tex_flavor*

If the first line of a `*.tex` file has the form >
	%&<format>
then this determined the file type:  plaintex (for plain TeX), context (for
ConTeXt), or tex (for LaTeX).  Otherwise, the file is searched for keywords to
choose context or tex.  If no keywords are found, it defaults to plaintex.
You can change the default by defining the variable g:tex_flavor to the format
(not the file type) you use most.  Use one of these: >
	let g:tex_flavor = "plain"
	let g:tex_flavor = "context"
	let g:tex_flavor = "latex"
Currently no other formats are recognized.

TYPST							*ft-typst-plugin*

							*g:typst_conceal*
When |TRUE| the Typst filetype plugin will set the 'conceallevel' option to 2.

							*g:typst_folding*
When |TRUE| the Typst filetype plugin will fold headings. (default: |FALSE|)

To enable: >
	let g:typst_folding = 1
<
							*g:typst_foldnested*
When |TRUE| the Typst filetype plugin will fold nested heading under their
parents. (default: |TRUE|)

To disable: >
	let g:typst_foldnested = 0
<
VIM							*ft-vim-plugin*

The Vim filetype plugin defines mappings to move to the start and end of
functions with [[ and ]].  Move around comments with ]" and [".

The mappings can be disabled with: >
	let g:no_vim_maps = 1

YAML							*ft-yaml-plugin*
By default, the YAML filetype plugin enables the following options: >
	setlocal shiftwidth=2 softtabstop=2

To disable this, set the following variable: >
	let g:yaml_recommended_style = 0


ZIG							*ft-zig-plugin*

						*g:zig_recommended_style*
By default the following indentation options are set, in accordance with Zig's
recommended style (https://ziglang.org/documentation/master/): >

	setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
<
To disable this behavior, set |g:zig_recommended_style| to 0: >

	let g:zig_recommended_style = 0
<
							*g:zig_std_dir*
The path to the Zig standard library. The Zig |ftplugin| reads |g:zig_std_dir|
and appends it to the 'path' for Zig files. Where the Zig standard library
is located is system and installation method dependent.

One can automatically set |g:zig_std_dir| using `zig env`: >

	let g:zig_std_dir = json_decode(system('zig env'))['std_dir']
<
This can, for example, be put in a FileType |:autocmd| or user |ftplugin| to
only load when a Zig file is opened.


ZIMBU							*ft-zimbu-plugin*

The Zimbu filetype plugin defines mappings to move to the start and end of
functions with [[ and ]].

The mappings can be disabled with: >
	let g:no_zimbu_maps = 1
<


 vim:tw=78:ts=8:noet:ft=help:norl:

Title: Filetype Plugins: Rust, SQL, Tex, Typst, Vim, YAML, Zig, and Zimbu
Summary
This section describes the filetype plugins for Rust, SQL, Tex, Typst, Vim, YAML, Zig, and Zimbu. For Rust and SQL, the text has been put in a separate file. The Tex plugin allows selecting file type based on the first line's format, defaulting to plaintex if no format is specified. The Typst plugin provides options for concealing, folding, and nested folding. The Vim and Zimbu plugins define mappings for function navigation, which can be disabled. The YAML plugin sets shiftwidth and softtabstop by default, which can be disabled. Finally, the Zig plugin sets indentation options by default and allows specifying the Zig standard library path.