From f865c894a505ca0eacf24cf63a2a788e3f43be4f Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Mon, 2 Feb 2026 18:05:31 -0500 Subject: [PATCH] fix(config): remove useless config option --- doc/fugitive-ts.nvim.txt | 13 ------------- lua/fugitive-ts/init.lua | 16 +--------------- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/doc/fugitive-ts.nvim.txt b/doc/fugitive-ts.nvim.txt index 7afeeb1..d4c428a 100644 --- a/doc/fugitive-ts.nvim.txt +++ b/doc/fugitive-ts.nvim.txt @@ -70,10 +70,6 @@ CONFIGURATION *fugitive-ts-config* Vim syntax highlighting options (experimental). See |fugitive-ts.VimConfig| for fields. - {diffsplit} (table, default: see below) - Diffsplit highlighting options. - See |fugitive-ts.DiffsplitConfig| for fields. - {highlights} (table, default: see below) Controls which highlight features are enabled. See |fugitive-ts.Highlights| for fields. @@ -102,15 +98,6 @@ CONFIGURATION *fugitive-ts-config* this many lines. Lower than the treesitter default due to the per-character cost of |synID()|. - *fugitive-ts.DiffsplitConfig* - Diffsplit config fields: ~ - {enabled} (boolean, default: true) - Override diff highlight foreground colors in - |:Gdiffsplit| and |:Gvdiffsplit| windows so - treesitter syntax is visible through the diff - backgrounds. Uses window-local 'winhighlight' - and only applies to fugitive-owned buffers. - *fugitive-ts.Highlights* Highlights table fields: ~ {background} (boolean, default: true) diff --git a/lua/fugitive-ts/init.lua b/lua/fugitive-ts/init.lua index c5087d0..4dbab38 100644 --- a/lua/fugitive-ts/init.lua +++ b/lua/fugitive-ts/init.lua @@ -10,9 +10,6 @@ ---@field enabled boolean ---@field max_lines integer ----@class fugitive-ts.DiffsplitConfig ----@field enabled boolean - ---@class fugitive-ts.Config ---@field enabled boolean ---@field debug boolean @@ -21,7 +18,6 @@ ---@field treesitter fugitive-ts.TreesitterConfig ---@field vim fugitive-ts.VimConfig ---@field highlights fugitive-ts.Highlights ----@field diffsplit fugitive-ts.DiffsplitConfig ---@class fugitive-ts ---@field attach fun(bufnr?: integer) @@ -85,9 +81,6 @@ local default_config = { background = true, gutter = true, }, - diffsplit = { - enabled = true, - }, } ---@type fugitive-ts.Config @@ -249,7 +242,7 @@ local DIFF_WINHIGHLIGHT = table.concat({ }, ',') function M.attach_diff() - if not config.enabled or not config.diffsplit.enabled then + if not config.enabled then return end @@ -301,15 +294,8 @@ function M.setup(opts) treesitter = { opts.treesitter, 'table', true }, vim = { opts.vim, 'table', true }, highlights = { opts.highlights, 'table', true }, - diffsplit = { opts.diffsplit, 'table', true }, }) - if opts.diffsplit then - vim.validate({ - ['diffsplit.enabled'] = { opts.diffsplit.enabled, 'boolean', true }, - }) - end - if opts.treesitter then vim.validate({ ['treesitter.enabled'] = { opts.treesitter.enabled, 'boolean', true },