From 1f0774edf5f49a4596e955649e7eb13778e6c511 Mon Sep 17 00:00:00 2001 From: pysan3 Date: Wed, 15 Nov 2023 06:34:58 +0900 Subject: [PATCH] refactor(luacheck): clean up overlooked errors --- lua/neorg/modules/core/syntax/module.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neorg/modules/core/syntax/module.lua b/lua/neorg/modules/core/syntax/module.lua index 4006a9263..87e1284fb 100644 --- a/lua/neorg/modules/core/syntax/module.lua +++ b/lua/neorg/modules/core/syntax/module.lua @@ -225,7 +225,7 @@ module.public = { module.public.remove_syntax(group, snip) end - local ok, result = pcall(vim.api.nvim_exec, has_syntax, true) + local ok, result = pcall(vim.api.nvim_exec, has_syntax, true) ---@diagnostic disable-line -- TODO: type error workaround : `nvim_exec` not found local count = select(2, result:gsub("\n", "\n")) -- get length of result from syn list local empty_result = 0 -- look to see if the textGroup is actually empty