refactor: use vim.deprecate on all deprecated functions

This commit is contained in:
dundargoc
2023-12-25 21:28:28 +01:00
committed by dundargoc
parent 0f22ea400c
commit 5f9d4d8afe
7 changed files with 36 additions and 20 deletions

View File

@@ -37,6 +37,11 @@ end
---@deprecated
function M.require_language(lang, path, silent, symbol_name)
vim.deprecate(
'vim.treesitter.language.require_language()',
'vim.treesitter.language.add()',
'0.12'
)
local opts = {
silent = silent,
path = path,