emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 141 forks source link

Change the minimum width of lsp-ui-doc-frame #634

Open vascoferreira25 opened 3 years ago

vascoferreira25 commented 3 years ago

I'm trying lsp-mode with C# and the doc-frame is too small.

20210703_200929_961_emacs_dZSGfrW0QE

If I change the default lsp-ui-doc-frame-parameters the doc-frame stays out of the window.

(setq lsp-ui-doc-frame-parameters
      '((left . -1)
        (no-focus-on-map . t)
        (min-width  . 80)
        (width  . 0)
        (min-height  . 0)
        (height  . 0)
        (internal-border-width . 1)
        (vertical-scroll-bars . nil)
        (horizontal-scroll-bars . nil)
        (right-fringe . 0)
        (menu-bar-lines . 0)
        (tool-bar-lines . 0)
        (line-spacing . 0)
        (unsplittable . t)
        (undecorated . t)
        (top . -1)
        (visibility . nil)
        (mouse-wheel-frame . nil)
        (no-other-frame . t)
        (inhibit-double-buffering . t)
        (drag-internal-border . t)
        (no-special-glyphs . t)
        (desktop-dont-save . t)))

20210703_201209_870_emacs_jv7IjO9k4Z

How can I change the doc-frame minimum width?

OS: Windows 10 Emacs version: 28.0.50

jcs090218 commented 3 years ago

Do you mean the text get truncated on the right edge and does not show the full information in the doc frame? 😕

vascoferreira25 commented 3 years ago

Yes. Although it doesn't happen while programming in Python and Rust.