diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-07-12 18:36:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-12 22:36:07 +0000 |
| commit | f3a54e7ccfcfa2752eccd7585e2c4b94a4c8c433 (patch) | |
| tree | 8b3c80476217f30d1356bae3d0d017669c14252f /runtime/lua/vim/_editor.lua | |
| parent | 430be9d01df443b096ab2c22f943589fb9086025 (diff) | |
refactor(lua): rename vim.diff => vim.text.diff #34864
Problem:
`vim.diff()` was introduced before we had the `vim.text` module, where
it obviously belongs.
Solution:
Move it.
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
| -rw-r--r-- | runtime/lua/vim/_editor.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/lua/vim/_editor.lua b/runtime/lua/vim/_editor.lua index d8bd2d96d2..ed8f9f258b 100644 --- a/runtime/lua/vim/_editor.lua +++ b/runtime/lua/vim/_editor.lua @@ -1314,9 +1314,12 @@ end require('vim._options') --- Remove at Nvim 1.0 +--- Remove at Nvim 1.0 ---@deprecated vim.loop = vim.uv +--- Renamed to `vim.text.diff`, remove at Nvim 1.0 +---@deprecated +vim.diff = vim._diff ---@type fun(a: string, b: string, opts?: vim.text.diff.Opts): string|integer[][]? -- Deprecated. Remove at Nvim 2.0 vim.highlight = vim._defer_deprecated_module('vim.highlight', 'vim.hl') |
