We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67fa41f commit cb9397cCopy full SHA for cb9397c
lua/blink/cmp/utils.lua
@@ -83,6 +83,8 @@ function utils.highlight_with_treesitter(bufnr, filetype, start_line, end_line)
83
local Range = require('vim.treesitter._range')
84
85
local root_lang = vim.treesitter.language.get_lang(filetype)
86
+ if root_lang == nil then return end
87
+
88
local trees = vim.treesitter.get_parser(bufnr, root_lang)
89
trees:parse({ start_line, end_line })
90
if not trees then return end
0 commit comments