Skip to content

Commit 20189f0

Browse files
committed
fix(treesitter): better check for decoration provider on_range. Fixes #661
1 parent 3fb3bd7 commit 20189f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/trouble/view/treesitter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function M.setup()
3030
M.did_setup = true
3131

3232
-- https://github.com/neovim/neovim/commit/5edbabdbec0ac3fba33be8afc008845130158583
33-
if vim.fn.has("nvim-0.12.0") == 1 then
33+
if TSHighlighter._on_range then
3434
vim.api.nvim_set_decoration_provider(ns, {
3535
on_win = wrap("_on_win"),
3636
on_range = wrap("_on_range"),

0 commit comments

Comments
 (0)