Skip to content

Commit

Permalink
refactor(luacheck): clean up overlooked errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pysan3 authored and vhyrro committed Nov 15, 2023
1 parent 59b6f8b commit 1f0774e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/syntax/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 <pysan3>: `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
Expand Down

0 comments on commit 1f0774e

Please sign in to comment.