From 09925e8d5ef08c4fbc844a18255efd4fb59c7b17 Mon Sep 17 00:00:00 2001 From: Dave Greene Date: Sun, 12 Apr 2026 15:17:07 -0400 Subject: [PATCH] fix: shadowed variable causes error --- lua/go/health.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/go/health.lua b/lua/go/health.lua index 3855273d2..565aa6e64 100644 --- a/lua/go/health.lua +++ b/lua/go/health.lua @@ -183,8 +183,8 @@ local function plugin_check() end -- check if treesitter-go is installed - local ok = pcall(vim.treesitter.language.inspect, 'go') - if not ok then + local tsok = pcall(vim.treesitter.language.inspect, 'go') + if not tsok then warn('treesitter-go is not installed, Please install go treesitter parser') else ok('treesitter-go is installed')