From f527e8701e33814d03d51a536de9fa77d8d62ce2 Mon Sep 17 00:00:00 2001 From: zdm Date: Mon, 13 Apr 2026 17:11:23 +0300 Subject: [PATCH] fix: fix treesitter get_parser --- lua/Comment/ft.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/Comment/ft.lua b/lua/Comment/ft.lua index 34afffa..deed25a 100644 --- a/lua/Comment/ft.lua +++ b/lua/Comment/ft.lua @@ -293,7 +293,7 @@ end function ft.calculate(ctx) local ok, parser = pcall(vim.treesitter.get_parser, A.nvim_get_current_buf()) - if not ok then + if not parser then return ft.get(vim.bo.filetype, ctx.ctype) --[[ @as string ]] end