No description
Find a file
2026-02-02 00:22:44 -05:00
.github/workflows fix(test): hopefully they work 2026-02-01 23:41:59 -05:00
doc feat: highlights 2026-02-01 23:17:20 -06:00
lua/fugitive-ts feat: highlights, debug fixes, and config validation 2026-02-02 00:22:44 -05:00
plugin feat: add the entire plugin 2026-02-01 17:38:32 -05:00
spec feat: highlights, debug fixes, and config validation 2026-02-02 00:22:44 -05:00
.busted feat(test): testing infrastructure 2026-02-01 23:09:05 -05:00
.editorconfig feat: initial setup files 2026-02-01 16:30:24 -05:00
.gitignore feat: initial setup files 2026-02-01 16:30:24 -05:00
.luarc.json feat: initial setup files 2026-02-01 16:30:24 -05:00
.pre-commit-config.yaml fix: correct ci 2026-02-01 19:03:52 -05:00
.prettierignore feat: initial setup files 2026-02-01 16:30:24 -05:00
.prettierrc feat: initial setup files 2026-02-01 16:30:24 -05:00
fugitive-ts.nvim-scm-1.rockspec feat(test): testing infrastructure 2026-02-01 23:09:05 -05:00
LICENSE feat: initial setup files 2026-02-01 16:30:24 -05:00
README.md feat(doc): add known limitations 2026-02-01 20:20:55 -05:00
selene.toml feat: initial setup files 2026-02-01 16:30:24 -05:00
stylua.toml feat: initial setup files 2026-02-01 16:30:24 -05:00
vim.toml feat: initial setup files 2026-02-01 16:30:24 -05:00

fugitive-ts.nvim

Treesitter syntax highlighting for vim-fugitive

Enhance the great vim-fugitive with syntax-aware code to easily work with diffs.

fugitive-ts.nvim preview

Features

  • Language-aware highlighting: Full treesitter syntax highlighting for code in diff hunks
  • Automatic language detection: Detects language from filenames using Neovim's filetype detection
  • Header context highlighting: Highlights function signatures in hunk headers (@@ ... @@ function foo())
  • Performance optimized: Debounced updates, configurable max lines per hunk
  • Zero configuration: Works out of the box with sensible defaults

Requirements

Installation

Using lazy.nvim:

{
  'barrettruth/fugitive-ts.nvim',
  dependencies = { 'tpope/vim-fugitive' },
  opts = {},
}

Documentation

:help fugitive-ts.nvim

Known Limitations

  • Syntax "flashing": fugitive-ts.nvim hooks into the FileType fugitive event triggered by vim-fugitive, at which point the fugitive buffer is preliminarily painted. The buffer is then re-painted after debounce_ms milliseconds, causing an unavoidable visual "flash" even when debounce_ms = 0. Feel free to reach out if you know how to fix this!

Acknowledgements