Skip to content

Commit 3fc4b5e

Browse files
author
Astro
authored
Merge pull request #19 from Gelio/fix-treesitter-api-function-name
fix: use new name for `get_captures_at_position`
2 parents 1fef581 + 56116a6 commit 3fc4b5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/dim.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ function util.get_treesitter_hl(row, col)
7878
local buf = vim.api.nvim_get_current_buf()
7979

8080
-- NOTE: use new functionality from https://github.com/neovim/neovim/issues/14090#issuecomment-1228444035
81-
if vim.treesitter.get_captures_at_position ~= nil then
82-
local matches = vim.treesitter.get_captures_at_position(buf, row, col)
81+
if vim.treesitter.get_captures_at_pos ~= nil then
82+
local matches = vim.treesitter.get_captures_at_pos(buf, row, col)
8383
return vim.tbl_map(function(match)
8484
return "@" .. match.capture
8585
end, matches)

0 commit comments

Comments
 (0)