mirror of
https://github.com/linrongbin16/lsp-progress.nvim.git
synced 2024-09-16 14:24:06 +02:00
fix(format): don't use 'string.format' when formatting (#103)
* refactor(format): don't use string.format when formatting * chore(luarc): disable third party check
This commit is contained in:
parent
be64a091b0
commit
d671304da3
2 changed files with 6 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"diagnostics.globals": ["vim", "describe", "before_each", "it"],
|
||||
"workspace.checkThirdParty": false
|
||||
"workspace.checkThirdParty": "Disable"
|
||||
}
|
||||
|
|
|
@ -84,8 +84,7 @@ local Defaults = {
|
|||
has_title = true
|
||||
end
|
||||
if type(message) == "string" and string.len(message) > 0 then
|
||||
local escaped = message:gsub("%%", "%%%%")
|
||||
table.insert(builder, escaped)
|
||||
table.insert(builder, message)
|
||||
has_message = true
|
||||
end
|
||||
if percentage and (has_title or has_message) then
|
||||
|
@ -113,12 +112,10 @@ local Defaults = {
|
|||
--- `client_messages` array, or ignored if return nil.
|
||||
client_format = function(client_name, spinner, series_messages)
|
||||
return #series_messages > 0
|
||||
and string.format(
|
||||
"[%s] %s %s",
|
||||
client_name,
|
||||
spinner,
|
||||
table.concat(series_messages, ", ")
|
||||
)
|
||||
and ("[" .. client_name .. "] " .. spinner .. " " .. table.concat(
|
||||
series_messages,
|
||||
", "
|
||||
))
|
||||
or nil
|
||||
end,
|
||||
|
||||
|
|
Loading…
Reference in a new issue