misc: keep deprecated vim.loader.disable stub (#31450)

Transitional stub to minimize breaking change pain, to be removed after
0.11 release.
This commit is contained in:
Gregory Anders 2024-12-04 10:17:46 -06:00 committed by GitHub
parent 52481eecf0
commit 0a15cd2500
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -446,6 +446,12 @@ function M.enable(enable)
end
end
--- @deprecated
function M.disable()
vim.deprecate('vim.loader.disable', 'vim.loader.enable(false)', '0.12')
vim.loader.enable(false)
end
--- Tracks the time spent in a function
--- @generic F: function
--- @param f F