From 0f067cd34d09b38f9aaf2e1732d825e89b573077 Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Sat, 14 Sep 2024 12:57:33 -0700 Subject: fix(treesitter): suppress get_parser warnings via opts.error --- runtime/lua/vim/_comment.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/_comment.lua') diff --git a/runtime/lua/vim/_comment.lua b/runtime/lua/vim/_comment.lua index c821f01257..de7f62632c 100644 --- a/runtime/lua/vim/_comment.lua +++ b/runtime/lua/vim/_comment.lua @@ -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 -- cgit