nvim-orgmode / orgmode

Orgmode clone written in Lua for Neovim 0.9+.
https://nvim-orgmode.github.io/
MIT License
3.04k stars 134 forks source link

vim.treesitter.query.get_query_files() is deprecated, use vim.treesitter.query.get_files() instead #536

Closed mcepl closed 1 year ago

mcepl commented 1 year ago

Describe the bug

See https://github.com/neovim/neovim/pull/22761

vim.treesitter.query.get_query_files() is deprecated, use vim.treesitter.query.get_files()
 instead. :help deprecated
This feature will be removed in Nvim version 0.10
stack traceback:
        /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:61: in function 'get_query_fi
les'
        ...er/start/orgmode/lua/orgmode/colors/todo_highlighter.lua:7: in function 'add_to
do_keyword_highlights'
        .../start/orgmode/lua/orgmode/colors/custom_highlighter.lua:18: in function 'setup
'
        ...nvim/site/pack/packer/start/orgmode/lua/orgmode/init.lua:27: in function 'init'

        ...nvim/site/pack/packer/start/orgmode/lua/orgmode/init.lua:45: in function 'reloa
d'
        ...nvim/site/pack/packer/start/orgmode/lua/orgmode/init.lua:63: in function <...nv
im/site/pack/packer/start/orgmode/lua/orgmode/init.lua:62>
        [C]: in function 'nvim_cmd'
        /usr/share/nvim/runtime/filetype.lua:22: in function </usr/share/nvim/runtime/file
type.lua:21>
        [C]: in function 'nvim_buf_call'
        /usr/share/nvim/runtime/filetype.lua:21: in function </usr/share/nvim/runtime/file
type.lua:10>

Steps to reproduce

Just open any *.org file

Expected behavior

No error messages

Emacs functionality

N/A

Minimal init.lua

not applicable, it is internal change in neovim.

Screenshots and recordings

No response

OS / Distro

openSUSE/Tumbleweed

Neovim version/commit

995196c61

Additional context

No response

mcepl commented 1 year ago

Seemingly fixed by https://github.com/nvim-orgmode/orgmode/pull/534.