feat: doc updates and cleanups
This commit is contained in:
parent
9b700ce869
commit
e2a62a6aa5
2 changed files with 22 additions and 0 deletions
|
|
@ -62,6 +62,10 @@ 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.
|
||||||
|
|
@ -90,6 +94,15 @@ 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)
|
||||||
|
|
|
||||||
|
|
@ -352,6 +352,15 @@ function M.setup(opts)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd('WinClosed', {
|
||||||
|
callback = function(args)
|
||||||
|
local win = tonumber(args.match)
|
||||||
|
if win and diff_windows[win] then
|
||||||
|
diff_windows[win] = nil
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue