Giter Site home page Giter Site logo

Comments (6)

manateelazycat avatar manateelazycat commented on July 21, 2024 2

I'll make it happen in a while. I've been a little too busy lately.

from lsp-bridge.

manateelazycat avatar manateelazycat commented on July 21, 2024 2

@eval-exec

I have push c767902 to support workDoneProgress protocol.

Control by option acm-backend-lsp-show-progress , when acm-backend-lsp-show-progress is t, show progress in minibuffer.

I use my awesome-tray, not use modeline, any PR about modeline are welcome! ;)

from lsp-bridge.

manateelazycat avatar manateelazycat commented on July 21, 2024

Can you give me some code to test workDoneProgress? Thanks.

from lsp-bridge.

eval-exec avatar eval-exec commented on July 21, 2024

Can you give me some code to test workDoneProgress? Thanks.

You can try this rust repo:
git clone --depth=1 https://github.com/BurntSushi/ripgrep.git

from lsp-bridge.

eval-exec avatar eval-exec commented on July 21, 2024

Great job on implementing support for the workDoneProgress protocol! Thank you! 💙

I use my awesome-tray, not use modeline, any PR about modeline are welcome! ;)

Now I can use the following spinner characters to display the status of WorkDoneProgress in modeline:
;; spinner = {"⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷"},


(defvar lsp-bridge--mode-line-spin-id 0)
(defvar lsp-bridge--spiners
  ;; '("⣾" "⣽" "⣻" "⢿" "⡿" "⣟" "⣯" "⣷")
  '("" "" "" "" "" "" "" "" "" "" "" "")
  )
(defun lsp-bridge--mode-line-format ()
  "Compose the LSP-bridge's mode-line."
  (setq-local mode-face
              (if (lsp-bridge-process-live-p)
                  'lsp-bridge-alive-mode-line
                'lsp-bridge-kill-mode-line))

  (when lsp-bridge-server
    (propertize (format "lsp-bridge %s "
						(nth lsp-bridge--mode-line-spin-id lsp-bridge--spiners)) 'face mode-face)))

(defun lsp-bridge--update-spin-id ()
  (setq lsp-bridge--mode-line-spin-id
        (mod (1+ lsp-bridge--mode-line-spin-id) (length lsp-bridge--spiners)))
  (force-mode-line-update))

(run-with-timer 0 0.1 'lsp-bridge--update-spin-id)

The effect:

a.mp4

from lsp-bridge.

manateelazycat avatar manateelazycat commented on July 21, 2024

Enjoy it.

from lsp-bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.