fix(config): remove useless config option
This commit is contained in:
parent
52bc53e4b5
commit
f865c894a5
2 changed files with 1 additions and 28 deletions
|
|
@ -70,10 +70,6 @@ CONFIGURATION *fugitive-ts-config*
|
||||||
Vim syntax highlighting options (experimental).
|
Vim syntax highlighting options (experimental).
|
||||||
See |fugitive-ts.VimConfig| for fields.
|
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)
|
{highlights} (table, default: see below)
|
||||||
Controls which highlight features are enabled.
|
Controls which highlight features are enabled.
|
||||||
See |fugitive-ts.Highlights| for fields.
|
See |fugitive-ts.Highlights| for fields.
|
||||||
|
|
@ -102,15 +98,6 @@ CONFIGURATION *fugitive-ts-config*
|
||||||
this many lines. Lower than the treesitter default
|
this many lines. Lower than the treesitter default
|
||||||
due to the per-character cost of |synID()|.
|
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*
|
*fugitive-ts.Highlights*
|
||||||
Highlights table fields: ~
|
Highlights table fields: ~
|
||||||
{background} (boolean, default: true)
|
{background} (boolean, default: true)
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,6 @@
|
||||||
---@field enabled boolean
|
---@field enabled boolean
|
||||||
---@field max_lines integer
|
---@field max_lines integer
|
||||||
|
|
||||||
---@class fugitive-ts.DiffsplitConfig
|
|
||||||
---@field enabled boolean
|
|
||||||
|
|
||||||
---@class fugitive-ts.Config
|
---@class fugitive-ts.Config
|
||||||
---@field enabled boolean
|
---@field enabled boolean
|
||||||
---@field debug boolean
|
---@field debug boolean
|
||||||
|
|
@ -21,7 +18,6 @@
|
||||||
---@field treesitter fugitive-ts.TreesitterConfig
|
---@field treesitter fugitive-ts.TreesitterConfig
|
||||||
---@field vim fugitive-ts.VimConfig
|
---@field vim fugitive-ts.VimConfig
|
||||||
---@field highlights fugitive-ts.Highlights
|
---@field highlights fugitive-ts.Highlights
|
||||||
---@field diffsplit fugitive-ts.DiffsplitConfig
|
|
||||||
|
|
||||||
---@class fugitive-ts
|
---@class fugitive-ts
|
||||||
---@field attach fun(bufnr?: integer)
|
---@field attach fun(bufnr?: integer)
|
||||||
|
|
@ -85,9 +81,6 @@ local default_config = {
|
||||||
background = true,
|
background = true,
|
||||||
gutter = true,
|
gutter = true,
|
||||||
},
|
},
|
||||||
diffsplit = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
---@type fugitive-ts.Config
|
---@type fugitive-ts.Config
|
||||||
|
|
@ -249,7 +242,7 @@ local DIFF_WINHIGHLIGHT = table.concat({
|
||||||
}, ',')
|
}, ',')
|
||||||
|
|
||||||
function M.attach_diff()
|
function M.attach_diff()
|
||||||
if not config.enabled or not config.diffsplit.enabled then
|
if not config.enabled then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -301,15 +294,8 @@ function M.setup(opts)
|
||||||
treesitter = { opts.treesitter, 'table', true },
|
treesitter = { opts.treesitter, 'table', true },
|
||||||
vim = { opts.vim, 'table', true },
|
vim = { opts.vim, 'table', true },
|
||||||
highlights = { opts.highlights, '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
|
if opts.treesitter then
|
||||||
vim.validate({
|
vim.validate({
|
||||||
['treesitter.enabled'] = { opts.treesitter.enabled, 'boolean', true },
|
['treesitter.enabled'] = { opts.treesitter.enabled, 'boolean', true },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue