From 58a4897e6d5f21a9178ae0f802d47af26d67a219 Mon Sep 17 00:00:00 2001 From: kiyan Date: Sun, 6 Feb 2022 13:34:08 +0100 Subject: refacto: deprecate used_by in parsers.lua - remove print_warning function from utils.lua (unused) - cleanup some functions in parsers.lua (parameters overloading and wrong bufnr used). - log a deprecation notice when using used_by in a parser definition - default the filetype_to_parsername table to the list of filetypes previously in the used_by keys - update the README to indicate that change --- lua/nvim-treesitter/utils.lua | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lua/nvim-treesitter/utils.lua') diff --git a/lua/nvim-treesitter/utils.lua b/lua/nvim-treesitter/utils.lua index 0e836404..b828d28a 100644 --- a/lua/nvim-treesitter/utils.lua +++ b/lua/nvim-treesitter/utils.lua @@ -136,12 +136,6 @@ function M.get_at_path(tbl, path) return result end --- Prints a warning message --- @param text the text message -function M.print_warning(text) - api.nvim_command(string.format([[echohl WarningMsg | echo "%s" | echohl None]], text)) -end - function M.set_jump() vim.cmd "normal! m'" end -- cgit v1.2.3