Giter VIP home page Giter VIP logo

Comments (3)

MaskRay avatar MaskRay commented on September 3, 2024

Do you mean textDocument/signatureHelp?

Highlighting the current positional argument shall be helpful:
foo(arg_0, <bold>arg_1</bold>, arg_2)

But it also raises the question how to display the information of the identifier itself.. textDocument/hover of arg_1 (used by lsp-ui-doc--eldoc)

from emacs-ccls.

Compro-Prasad avatar Compro-Prasad commented on September 3, 2024

Sorry, my bad. I can get it when I enable lsp-ui-mode. It works in my config but fails in spacemacs because two eldocs are shown simultaneously because of which the function prototype eldoc hides itself under the variable eldoc.

from emacs-ccls.

MaskRay avatar MaskRay commented on September 3, 2024

You may be interested at emacs-lsp/lsp-mode#422

I have also recently revamped textDocument/signatureHelp in ccls.

(defun +my/lsp-ui-doc--eldoc (&rest _)
  (when (and (lsp--capability "documentHighlightProvider")
             lsp-highlight-symbol-at-point)
    (lsp-symbol-highlight))
  (if (evil-insert-state-p)
      (lsp--text-document-signature-help)
      lsp-ui-doc--string-eldoc
      ))

(advice-add #'lsp-ui-doc--eldoc :override #'+my/lsp-ui-doc--eldoc)

from emacs-ccls.

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.