aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_comment.lua
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lua/vim/_comment.lua')
-rw-r--r--runtime/lua/vim/_comment.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_comment.lua b/runtime/lua/vim/_comment.lua
index 52b58c4451..7afd0813ca 100644
--- a/runtime/lua/vim/_comment.lua
+++ b/runtime/lua/vim/_comment.lua
@@ -8,7 +8,7 @@
local function get_commentstring(ref_position)
local buf_cs = vim.bo.commentstring
- local ts_parser = vim.treesitter.get_parser(0, '', { error = false })
+ local ts_parser = vim.treesitter.get_parser(0, '')
if not ts_parser then
return buf_cs
end