aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-03-28 15:07:20 +0800
committerGitHub <noreply@github.com>2025-03-28 15:07:20 +0800
commitedb9d0d21e0d2c93232932ee175739cedbcb5e28 (patch)
treed24c6b790dd0f81dcb519fa77a256047a6d451d6 /runtime/lua
parentae98d0a560b08d901ee9aae85df634de0ae3fe0a (diff)
parente2e0f92f17c84af160e2c563d9b73d6ea797943b (diff)
downloadrneovim-edb9d0d21e0d2c93232932ee175739cedbcb5e28.tar.gz
rneovim-edb9d0d21e0d2c93232932ee175739cedbcb5e28.tar.bz2
rneovim-edb9d0d21e0d2c93232932ee175739cedbcb5e28.zip
Merge pull request #33086 from zeertzjq/vim-9.1.1243
vim-patch:9.1.{1243,1246}
Diffstat (limited to 'runtime/lua')
-rw-r--r--runtime/lua/vim/_meta/options.lua17
1 files changed, 16 insertions, 1 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
index 20d8ac3058..427bbd5124 100644
--- a/runtime/lua/vim/_meta/options.lua
+++ b/runtime/lua/vim/_meta/options.lua
@@ -1716,6 +1716,21 @@ vim.go.dex = vim.go.diffexpr
--- Use the indent heuristic for the internal
--- diff library.
---
+--- inline:{text} Highlight inline differences within a change.
+--- See `view-diffs`. Supported values are:
+---
+--- none Do not perform inline highlighting.
+--- simple Highlight from first different
+--- character to the last one in each
+--- line. This is the default if nothing
+--- is set.
+--- char Use internal diff to perform a
+--- character-wise diff and highlight the
+--- difference.
+--- word Use internal diff to perform a
+--- `word`-wise diff and highlight the
+--- difference.
+---
--- internal Use the internal diff library. This is
--- ignored when 'diffexpr' is set. *E960*
--- When running out of memory when writing a
@@ -1766,7 +1781,7 @@ vim.go.dex = vim.go.diffexpr
---
---
--- @type string
-vim.o.diffopt = "internal,filler,closeoff,linematch:40"
+vim.o.diffopt = "internal,filler,closeoff,inline:simple,linematch:40"
vim.o.dip = vim.o.diffopt
vim.go.diffopt = vim.o.diffopt
vim.go.dip = vim.go.diffopt