fix(compiler): format is_longrunning and annotate is_reload field

Problem: stylua required is_longrunning to be on one line; lua-ls
warned about undefined field is_reload on preview.Process.

Solution: inline the boolean expression and add is_reload? to the
preview.Process annotation.
This commit is contained in:
Barrett Ruth 2026-03-03 16:28:37 -05:00
parent 6d5d84e5e8
commit 8c7bc61286
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 2 additions and 2 deletions

View file

@ -316,8 +316,7 @@ end
---@param provider preview.ProviderConfig
---@param ctx_builder fun(bufnr: integer): preview.Context
function M.toggle(bufnr, name, provider, ctx_builder)
local is_longrunning = type(provider.reload) == 'table'
or type(provider.reload) == 'function'
local is_longrunning = type(provider.reload) == 'table' or type(provider.reload) == 'function'
if is_longrunning then
if active[bufnr] then