Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions doc/diffs.nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ Configuration is done via `vim.g.diffs`. Set options before the plugin loads:

{conflict} (boolean|table, default: true)
Highlight and resolve inline merge conflicts.
Set to false to disable.
See |diffs.nvim-conflict|.

*diffs.nvim.Highlights*
Highlights table fields: ~
Expand Down Expand Up @@ -1046,13 +1048,15 @@ unchanged.
==============================================================================
CONFLICT RESOLUTION *diffs.nvim-conflict*

diffs.nvim detects inline merge conflict markers (`<<<<<<<`/`=======`/
`>>>>>>>`) in working files and provides highlighting and resolution actions.
Both standard and diff3 (`|||||||`) formats are supported.
diffs.nvim highlights merge conflicts in working files. It recognizes standard
markers (`<<<<<<<`, `=======`, `>>>>>>>`) and diff3 base sections (`|||||||`).

Conflict regions are detected automatically on `BufReadPost` and re-scanned on
`TextChanged`. When all conflicts in a buffer are resolved, highlighting is
removed.
diffs.nvim detects conflicts when you open a file and updates their highlights
as you edit. Resolve conflicts with the mappings below or edit the text directly.

To disable conflict handling: >lua
vim.g.diffs = { conflict = false }
<

Buffer-local mappings: ~ *diffs.nvim-conflict-keymaps*

Expand Down
13 changes: 0 additions & 13 deletions lua/diffs/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ local integration_metadata = require('diffs.integrations')
---@field prev string|false

---@class diffs.ConflictConfig
---@field enabled? boolean Deprecated.
---@field keymaps diffs.ConflictKeymaps|false

---@class diffs.DifftasticConfig
Expand Down Expand Up @@ -158,18 +157,6 @@ function M.new(opts)
end
end
end
if type(result.conflict) == 'table' and result.conflict.enabled ~= nil then
vim.notify_once(
'[diffs]: conflict.enabled is deprecated. Support ends on November 30, 2026. '
.. 'Use conflict = false to disable conflict handling. Otherwise remove enabled.',
vim.log.levels.WARN
)
if result.conflict.enabled == false then
result.conflict = false
else
result.conflict.enabled = nil
end
end
if result.conflict == true then
result.conflict = vim.deepcopy(DEFAULTS.conflict)
end
Expand Down
Loading