Skip to content

Commit

Permalink
fix: ignore buffer local treesitter option
Browse files Browse the repository at this point in the history
Closes #913
  • Loading branch information
Saghen committed Jan 6, 2025
1 parent 9ffdb7b commit d704244
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lua/blink/cmp/completion/windows/render/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ local MAX_CACHE_SIZE = 1000
--- @param ctx blink.cmp.DrawItemContext
--- @param opts? {offset?: number}
function treesitter.highlight(ctx, opts)
-- early return if treesitter highlight is disabled
if not vim.b.ts_highlight then return {} end

local ret = cache[ctx.label]
if not ret then
-- cleanup cache if it's too big
Expand Down

0 comments on commit d704244

Please sign in to comment.