Skip to content

A Neovim filetype plugin for TeX-related files

License

Notifications You must be signed in to change notification settings

teatimeguest/tex-filetypes.nvim

Repository files navigation

tex-filetypes.nvim

A Neovim filetype plugin for TeX-related files

Features

  • Improved support for existing filetypes, especially tex and lua.
  • Additional filetypes for several TeX-related file formats.

Requirements

  • Neovim >= 0.10.0

Installation

{
  "teatimeguest/tex-filetypes.nvim",
  config = true,
  event = { "BufReadPre", "BufNewFile" },
}
add("teatimeguest/tex-filetypes.nvim")

Improvements

tex

  • Improve include and includeexpr, using kpsewhich.
  • Add more match patterns for matchit.

lua

  • Add support for lua files from TeX distribution to includeexpr.
  • Set b:is_texlua to v:true for TeX-related lua files.

Extra Filetypes

The plugin provides support for the following file formats:

Filetype Language Syntax Indent Fold Comments Include Define
bibtoolrsc BibTool resource file
chktexrc ChkTeX config file
dependstxt TeX Live's DEPENDS.txt format
fontmap TeX fontmap file
propertylist Property list of TeX font metric data
subfonts ttfutils' subfont definition file
texliveprofile TeX Live installation profile
tlpdb TeX Live Database/Object/Source file

Configuration

The plugin respects the filetype-overrule and filetype-ignore global config. In particular, the following variables affect filetype detection:

  • g:filetype_cfg
  • g:filetype_def
  • g:filetype_pl
  • g:ft_ignore_pat

License

MIT License

About

A Neovim filetype plugin for TeX-related files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published