Skip to content

Remove spinner once LSP is completed #59

Closed Answered by linrongbin16
ryanmsnyder asked this question in Q&A
Discussion options

You must be logged in to vote

emmmm, I think it's possible, just a little bit complicated to configure.

You will need 2 steps:

  1. In series_format, you should return an object.

    series_format = function(title, message, percentage, done)
    
      -- same with default
      ...
    
      return {msg=table.concat(builder, " "), done=done}
    end

    This is for returning an extra value done, we will use it in second step.

  2. In client_format, you can use below code:

    client_format = function(client_name, spinner, series_messages)
      if #series_messages == 0 then
        return nil
      end
      local builder = {}
      for _, series in ipairs(series_messages) do
        if series.done then
          spinner = '' -- replace your check mark
        end
        table.insert(builder, 

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@linrongbin16
Comment options

@ryanmsnyder
Comment options

@linrongbin16
Comment options

Answer selected by ryanmsnyder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants