Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Neovim
  3. texmagic.nvim

texmagic.nvim

GPL-3.0Lua

A Neovim plugin that enables per-project LaTeX build engine selection via magic comments for the TexLab LSP server.

Visit WebsiteGitHubGitHub
58 stars2 forks0 contributors

Overview

TeXMagic.nvim is a Neovim plugin designed to enhance the TexLab LSP server's build service by allowing dynamic selection of LaTeX build engines on a per-project basis. It solves the limitation of only being able to specify a global build engine in TexLab's configuration, making it ideal for users who work with multiple LaTeX projects requiring different compilation toolchains.

Key Features

  • Magic Comment Detection — Reads %! TEX program = engine_name comments at the top of LaTeX documents to select the build engine.
  • Custom Build Engines — Define any number of custom LaTeX build engines with specific executables and arguments in your Neovim configuration.
  • Default Engine Fallback — Includes three default latexmk-based engines (pdflatex, xelatex, dvipspdf) and falls back to pdflatex if a requested engine isn't found.
  • Seamless TexLab Integration — Provides a resolved build configuration that can be directly passed to the TexLab LSP server setup via nvim-lspconfig.
  • Diagnostic Functions — Includes several Vim functions for troubleshooting, such as checking for magic comments, setup status, and selected program.

Philosophy

TeXMagic.nvim is built on simplicity and configurability, offering a lightweight solution to make TexLab's build service more flexible without the need for a full-featured plugin like Vimtex.

Quick Stats

Stars58
Forks2
Contributors0
Open Issues3
Last commit3 months ago
CreatedSince 2021

Tags

#build-automation#latex#neovim-plugin#tex#text-editing#neovim#lua#nvim#lsp#nvim-lspconfig

Built With

N
Neovim
L
Lua

Links & Resources

Website

Included in

Neovim20.6k
Auto-fetched 1 day ago

Related Projects

nvim-lspconfignvim-lspconfig

Quickstart configs for Nvim LSP

Stars13,729
Forks2,457
Last commit2 days ago
lspsaga.nvimlspsaga.nvim

improve neovim lsp experience

Stars3,793
Forks303
Last commit1 month ago
none-ls.nvimnone-ls.nvim

null-ls.nvim reloaded / Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.

Stars3,238
Forks121
Last commit13 days ago
rustaceanvimrustaceanvim

🦀 Supercharge your Rust experience in Neovim! A heavily modified fork of rust-tools.nvim

Stars3,019
Forks133
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub