refactor(config): nest integration toggles under integrations namespace (#174)

## Problem

Integration keys (`fugitive`, `neogit`, `gitsigns`, `committia`,
`telescope`)
live at the top level of `vim.g.diffs`, cluttering the config namespace.

## Solution

Move them under `vim.g.diffs.integrations.*`. Old top-level keys still
work but
emit `vim.deprecate` targeting v0.3.2. `compute_filetypes` and
`plugin/diffs.lua`
fall back to legacy keys for pre-`init()` callers.

Also includes `83c17ac` which fixes an invalid hex hash in the combined
diff test
fixture.
This commit is contained in:
Barrett Ruth 2026-03-06 14:46:02 -05:00 committed by GitHub
parent 823743192a
commit a880261988
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 151 additions and 67 deletions

View file

@ -1,6 +1,6 @@
require('spec.helpers')
vim.g.diffs = { neogit = true }
vim.g.diffs = { integrations = { neogit = true } }
local diffs = require('diffs')
local parser = require('diffs.parser')