mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
fix(treesitter): suppress get_parser warnings via opts.error
This commit is contained in:

committed by
Christian Clason

parent
7b71fdbc1e
commit
0f067cd34d
@@ -9,7 +9,7 @@
|
||||
local function get_commentstring(ref_position)
|
||||
local buf_cs = vim.bo.commentstring
|
||||
|
||||
local ts_parser = vim.treesitter._get_parser()
|
||||
local ts_parser = vim.treesitter.get_parser(0, '', { error = false })
|
||||
if not ts_parser then
|
||||
return buf_cs
|
||||
end
|
||||
|
Reference in New Issue
Block a user