Giter Site home page Giter Site logo

Comments (7)

manateelazycat avatar manateelazycat commented on July 21, 2024 1

If lsp-bridge calls elisp functions to Emacs, please use emacs -Q and load only the lsp-bridge configuration for testing. I think it is your Emacs configuration that is affecting it, causing you to be unable to display the results returned by lsp-bridge in the minibuffer. information

from lsp-bridge.

manateelazycat avatar manateelazycat commented on July 21, 2024

xref and eldoc are synchronous. These two libraries do not support asynchronous calls. If lsp-bridge uses xref and eldoc, lsp-bridge will be stuck due to these two libraries. We have experimented before, and it greatly affects performance. So I finally deleted it。

from lsp-bridge.

ovistoica avatar ovistoica commented on July 21, 2024

I see. Is there any way that you know to show the function signature in the minibuffer (under modeling) when cursor is over for example the function name?

from lsp-bridge.

manateelazycat avatar manateelazycat commented on July 21, 2024

lsp-bridge-signature-show-function

from lsp-bridge.

ovistoica avatar ovistoica commented on July 21, 2024

Hey @manateelazycat , sorry to be persistent, I know you are a busy man

I tried setting lsp-bridge-signature-show-function as the docs say but it doesn't show the signature

My config:

(use-package lsp-bridge
  :after (evil)
  :defines
  lsp-bridge-show-documentation
  lsp-bridge-signature-show-with-frame
  :straight '(lsp-bridge :type git :host github :repo "manateelazycat/lsp-bridge"
                         :files (:defaults "*.el" "*.py" "acm" "core" "langserver" "multiserver" "resources")
                         :build (:not compile))
  :init
  (global-lsp-bridge-mode)
  :config
  (setq lsp-bridge-enable-hover-diagnostic t
        acm-enable-doc t
        acm-enable-doc-markdown-render t
        lsp-bridge-enable-inlay-hint t
        lsp-bridge-signature-show-function 'lsp-bridge-signature-show-with-frame)
  :bind
  (:map lsp-bridge-mode-map
        ("C-c c a" . lsp-bridge-code-action)
        ("C-c c r" . lsp-bridge-rename)
        ("C-c c f" . lsp-bridge-code-format))
  :os/bind ((:map (lsp-bridge-mode-map . normal)
                  ("gr" . lsp-bridge-find-references)
                  ("gd" . lsp-bridge-find-def)
                  ("K" . lsp-bridge-show-documentation))))

And when I inspect value for lsp-bridge-signature-show-function it's defined correctly but nothing shows in the minibuffer.

Can you guide me in the correct direction here?

from lsp-bridge.

ovistoica avatar ovistoica commented on July 21, 2024

Actually, sorry, the correct function to display signature in minibuffer, is message which is the default, however, when the point is over a symbol or function, the signature is not displayed in minibuffer even when lsp-bridge-signature-show-function is message

I see lsp-bridge does the correct request whenever I move cursor to a symbol

--- [09:20:06.562594] Send textDocument/signatureHelp request (25212) to 'typescript' for project SQ2020-Frontend

--- [09:20:06.563739] Recv textDocument/signatureHelp response (25212) from 'typescript' for project SQ2020-Frontend

--- [09:20:08.847370] Send textDocument/signatureHelp request (40425) to 'typescript' for project SQ2020-Frontend

--- [09:20:08.848998] Recv textDocument/signatureHelp response (40425) from 'typescript' for project SQ2020-Frontend

--- [09:20:12.129343] Send textDocument/signatureHelp request (34733) to 'typescript' for project SQ2020-Frontend

--- [09:20:12.131022] Recv textDocument/signatureHelp response (34733) from 'typescript' for project SQ2020-Frontend

--- [09:20:29.864978] Send textDocument/signatureHelp request (56025) to 'typescript' for project SQ2020-Frontend

--- [09:20:29.868687] Recv textDocument/signatureHelp response (56025) from 'typescript' for project SQ2020-Frontend

Any ideas?

from lsp-bridge.

ovistoica avatar ovistoica commented on July 21, 2024

Continued the discussion in #911 to avoid multiple topics here

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.