From f3a54e7ccfcfa2752eccd7585e2c4b94a4c8c433 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 12 Jul 2025 18:36:07 -0400 Subject: 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. --- runtime/lua/vim/_editor.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'runtime/lua/vim/_editor.lua') 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') -- cgit v1.3-3-g829e