summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfdschmidt93 <39233597+fdschmidt93@users.noreply.github.com>2021-09-17 00:07:54 +0200
committerGitHub <noreply@github.com>2021-09-17 00:07:54 +0200
commit5a020a8859657ba909950239c723e08dda6967b9 (patch)
tree0dab3fc703838e40c6166755b4510aa13ea690b7
parent7c5b846f6f8caa8acf4b63dc4c33a801e2ea78a0 (diff)
fix: fallback to syntax hl if treesitter fails (#1249)
-rw-r--r--lua/telescope/previewers/utils.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/previewers/utils.lua b/lua/telescope/previewers/utils.lua
index abb44e3..234eb0c 100644
--- a/lua/telescope/previewers/utils.lua
+++ b/lua/telescope/previewers/utils.lua
@@ -74,7 +74,7 @@ utils.highlighter = function(bufnr, ft, opts)
if ts_highlighting then
ts_success = utils.ts_highlighter(bufnr, ft)
end
- if not (ts_highlighting or ts_success) then
+ if not ts_highlighting or ts_success == false then
utils.regex_highlighter(bufnr, ft)
end
end