mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
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
This commit is contained in:
parent
d7eab3a5a9
commit
58a4897e6d
3 changed files with 37 additions and 37 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue