pwntester / octo.nvim

Edit and review GitHub issues and pull requests from the comfort of your favorite editor
MIT License
2.28k stars 125 forks source link

treesitter markdown parser complaining about filetype_to_parsername #374

Closed catgoose closed 1 year ago

catgoose commented 1 year ago

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)

  1. Configure treesitter as per the README for markdown parsing
    local ft_to_parser = require "nvim-treesitter.parsers".filetype_to_parsername
    ft_to_parser.octo = "markdown"
  2. Start neovim

Tell us your environment

Ubuntu 22.04, neovim nightly

timtyrrell commented 1 year ago

this will resolve that warning:

vim.treesitter.language.register('markdown', 'octo')

https://github.com/nvim-treesitter/nvim-treesitter/pull/4296

pwntester commented 1 year ago

Thanks @timtyrrell !