We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1fef581 + 56116a6 commit 3fc4b5eCopy full SHA for 3fc4b5e
1 file changed
lua/dim.lua
@@ -78,8 +78,8 @@ function util.get_treesitter_hl(row, col)
78
local buf = vim.api.nvim_get_current_buf()
79
80
-- 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)
+ if vim.treesitter.get_captures_at_pos ~= nil then
+ local matches = vim.treesitter.get_captures_at_pos(buf, row, col)
83
return vim.tbl_map(function(match)
84
return "@" .. match.capture
85
end, matches)
0 commit comments