Skip to content

Unable to activate certain lsp-ui features #8439

@dylanbmorgan

Description

@dylanbmorgan

I confirm that...

  • I searched the issue tracker and found no similar issues.

  • I searched the documentation, FAQ, discussion board, and Google for solutions to my issue.

  • I read the debugging guide and researched the issue to the best of my ability.

  • My issue can be observed on the latest available commit of Doom.

  • My issue can be observed on a stable release of Emacs (i.e. doesn't end in .50, .60, or .90.99)

Describe your issue

I am attempting to use some lsp-ui features, but even when explicitly activating them in config.el, they are not activated in certain modes. For example, in Python whilst using ruff, basedpyright, and ty, lsp-ui-doc-show and lsp-ui-sideline-enable will only activate over int variables

Steps to reproduce

(after! lsp-mode
  (setq lsp-enable-symbol-highlighting t
        lsp-lens-enable t
        lsp-headerline-breadcrumb-enable t
        lsp-modeline-code-actions-enable t
        lsp-modeline-diagnostics-enable t
        lsp-diagnostics-provider :auto
        lsp-eldoc-enable-hover t
        lsp-completion-provider :capf
        lsp-completion-show-detail t
        lsp-completion-show-kind t
        lsp-signature-render-documentation t
        lsp-idle-delay 0.75))

(after! lsp-ui
    (setq lsp-ui-doc-enable t
          lsp-ui-doc-show-with-cursor t
          lsp-ui-doc-show-with-mouse t
          lsp-headerline-breadcrumb-enable t
          lsp-ui-sideline-enable t
          lsp-ui-sideline-show-code-actions t
          lsp-ui-sideline-show-hover t
          lsp-ui-sideline-delay 0.5
          lsp-ui-sideline-show-symbol t
          lsp-ui-sideline-show-diagnostics t
          lsp-ui-sideline-update-mode 'line
          lsp-ui-peek-enable t
          lsp-ui-peek-show-directory t
          lsp-ui-doc-delay 1
          lsp-ui-doc-header t
          lsp-ui-doc-use-childframe t
          lsp-ui-doc-position 'top
          lsp-ui-doc-max-height 40
          lsp-ui-doc-max-width 100
          lsp-ui-doc-use-webkit nil
          lsp-ui-imenu-enable t
          lsp-ui-imenu-kind-position 'left
          lsp-ui-imenu-buffer-position 'right
          lsp-ui-imenu-window-width 40
          lsp-ui-imenu-auto-refresh t
          lsp-ui-imenu-auto-refresh-delay 1.0))

(map! :map lsp-ui-mode-map "C-," #'lsp-ui-doc-toggle)
(map! :map lsp-ui-mode-map "C-;" #'lsp-ui-doc-focus-frame)

System information

https://pastebin.com/SUBmMRe2

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:bugSomething isn't working as intendedneeds-triageIssue hasn't been assessed yet

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions