From 7eb5f1a2e3949496f26c4084b521b30f2d08137a Mon Sep 17 00:00:00 2001 From: Kiyoon Kim Date: Sun, 12 Feb 2023 18:18:48 +0000 Subject: properly replace deprecated tsutils functions --- lua/nvim-treesitter/indent.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/indent.lua b/lua/nvim-treesitter/indent.lua index 0eac0a911..a53d38c8d 100644 --- a/lua/nvim-treesitter/indent.lua +++ b/lua/nvim-treesitter/indent.lua @@ -1,6 +1,7 @@ local parsers = require "nvim-treesitter.parsers" local queries = require "nvim-treesitter.query" local tsutils = require "nvim-treesitter.ts_utils" +local ts = vim.treesitter local M = {} @@ -82,7 +83,7 @@ function M.get_indent(lnum) return end local local_root = tstree:root() - if tsutils.is_in_node_range(local_root, lnum - 1, 0) then + if ts.is_in_node_range(local_root, lnum - 1, 0) then if not root or tsutils.node_length(root) >= tsutils.node_length(local_root) then root = local_root lang_tree = tree -- cgit v1.2.3-70-g09d2