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:
parent
6d5d84e5e8
commit
8c7bc61286
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue