Skip to content

Commit

Permalink
feat(preview): disable syntax if delay_syntax < 0 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhwang91 committed Nov 18, 2022
1 parent 5ce70db commit 3247018
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/bqf/preview/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,9 @@ local function init()
clicked = false

PLACEHOLDER_TBL = {}
M.doSyntax = debounce(doSyntax, delaySyntax)
-- Damn it! someone wants to disable syntax :(
-- https://github.com/kevinhwang91/nvim-bqf/issues/89
M.doSyntax = delaySyntax >= 0 and debounce(doSyntax, delaySyntax) or function() end
end

init()
Expand Down

0 comments on commit 3247018

Please sign in to comment.