From acd01551a3185118f58f0708b7fffdb2465e39f1 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 9 Apr 2022 11:50:54 +0200 Subject: chore!: deprecate ensure_installed=maintained BREAKING CHANGE: specify explicit list or use `ensure_installed='all'` (not recommended) --- lua/nvim-treesitter/parsers.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua') diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 1c442d0d..88b33467 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -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 -- cgit v1.2.3