mirror of
https://github.com/neovim/neovim.git
synced 2025-11-27 04:30:41 +00:00
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.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user