Merge pull request #569 from Dosx001/master
Some checks are pending
Test / test (head) (push) Waiting to run

fix: replace deprecated treesitter call
This commit is contained in:
mattn
2026-03-24 17:18:49 +09:00
committed by GitHub

View File

@@ -1,8 +1,7 @@
local M = {}
M.get_node_at_cursor = function()
local ts_utils = require("nvim-treesitter.ts_utils")
local node = ts_utils.get_node_at_cursor()
local node = vim.treesitter.get_node()
if not node then
return nil
end