Skip to content

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

@mcepl

Description

@mcepl

Describe the bug

See neovim/neovim#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions