nvim-tree-docs icon indicating copy to clipboard operation
nvim-tree-docs copied to clipboard

Usage of deprecated methods

Open hood opened this issue 3 years ago • 0 comments

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

hood avatar Jun 15 '22 08:06 hood