mirror of
https://github.com/neovim/neovim.git
synced 2026-03-28 19:32:01 +00:00
refactor(treesitter)!: get_parser return nil on error #37276
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user