-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Labels
Description
To reproduce:
- Open with
emacs -Q
- Evaluate:
(progn
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'lsp-mode)
(straight-use-package 'lsp-ui)
(require 'lsp-mode)
(require 'lsp-ui)
(setq
lsp-ui-doc-enable t
lsp-ui-doc-header t
lsp-ui-doc-include-signature t
lsp-ui-doc-position 'bottom
lsp-ui-doc-alignment 'window
lsp-ui-doc-use-childframe t
lsp-ui-doc-use-webkit nil
lsp-ui-doc-delay 0.2
lsp-ui-sideline-enable nil
lsp-ui-imenu-enable t)
(custom-set-faces
'(lsp-ui-doc-background ((t :background "#ff00ff")))
'(lsp-ui-doc-header ((t :foreground "#ff8000" :background "#00ff00")))
'(lsp-ui-doc-url ((t :inherit link))))
)
- Open a new file ~/test.js
M-x lsp
- Write
document.activeelement
and wait for the info-box. - It is magenta, as expected.
- Evaluate:
(custom-set-faces
'(lsp-ui-doc-background ((t :background "#0000ff")))
'(lsp-ui-doc-header ((t :foreground "#00ff80" :background "#808080")))
'(lsp-ui-doc-url ((t :inherit link))))
- Activate the documentation frame again.
- It seems that the changed
lsp-ui-doc-header
is respected, but not the new value forlsp-ui-doc-background
.