chore!: deprecate ensure_installed=maintained

BREAKING CHANGE: specify explicit list or use `ensure_installed='all'`
(not recommended)
This commit is contained in:
Christian Clason 2022-04-09 11:50:54 +02:00 committed by Christian Clason
parent a5728b36e4
commit acd01551a3
3 changed files with 14 additions and 11 deletions

View file

@ -1042,6 +1042,10 @@ function M.available_parsers()
end
function M.maintained_parsers()
require("nvim-treesitter.utils").notify(
"ensure_installed='maintained' will be removed April 30, 2022. Specify parsers explicitly or use 'all'.",
vim.log.levels.WARN
)
local has_tree_sitter_cli = vim.fn.executable "tree-sitter" == 1 and vim.fn.executable "node" == 1
return vim.tbl_filter(function(lang)
return M.list[lang].maintainers