mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-03-25 05:48:06 +08:00
Merge pull request #569 from Dosx001/master
Some checks are pending
Test / test (head) (push) Waiting to run
Some checks are pending
Test / test (head) (push) Waiting to run
fix: replace deprecated treesitter call
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user