Skip to content

Usage of deprecated methods #21

@hood

Description

@hood

Getting

nvim-treesitter.ts_utils.get_node_text is deprecated: use vim.treesitter.query.get_node_text
E5108: Error executing lua /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:364: offset_encoding: expected string, got nil
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:364: in function 'doc_node_at_cursor'

whenever trying to use the plugin on latest nightly. vim.treesitter.query.get_node_text should be used instead of nvim-treesitter.ts_utils.get_node_text

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions