Closed catgoose closed 1 year ago
Type: bug report
Treesitter is issuing a warning: filetype_to_parsername is deprecated, please use 'vim.treesitter.language.register
filetype_to_parsername is deprecated, please use 'vim.treesitter.language.register
No warnings
local ft_to_parser = require "nvim-treesitter.parsers".filetype_to_parsername ft_to_parser.octo = "markdown"
Ubuntu 22.04, neovim nightly
this will resolve that warning:
vim.treesitter.language.register('markdown', 'octo')
https://github.com/nvim-treesitter/nvim-treesitter/pull/4296
Thanks @timtyrrell !
Issue Description
Type: bug report
Describe what happened (or what feature you want)
Treesitter is issuing a warning:
filetype_to_parsername is deprecated, please use 'vim.treesitter.language.register
Describe what you expected to happen
No warnings
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
Ubuntu 22.04, neovim nightly