Skip to content

Commit 2c80b89

Browse files
committed
chore: Fix nil check issue
1 parent 717afac commit 2c80b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/debugprint/utils/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ M.get_effective_filetypes = function()
7373

7474
local success, parser = pcall(vim.treesitter.get_parser, 0)
7575

76-
if success then
76+
if success and parser then
7777
-- For some reason I don't understand, this parse line is necessary to
7878
-- make embedded languages work
7979
parser:parse(true)

0 commit comments

Comments
 (0)