Improve usability of lsp-peek
Add keybinds and theme
This commit is contained in:
parent
2c12aec78d
commit
e39ef67ce2
2 changed files with 28 additions and 6 deletions
|
@ -53,6 +53,7 @@
|
|||
(common-fg '("#b7c9ee" "white" "white"))
|
||||
(common-bg '("#0d1017" "black" "black"))
|
||||
(modeline '("#156570" nil nil))
|
||||
(highlight (funcall brighten-first common-bg 0.15))
|
||||
(comment '("#384345" nil nil))
|
||||
(doc '("#6a866f" nil nil))
|
||||
(keyword '("#349672" nil nil))
|
||||
|
@ -64,6 +65,8 @@
|
|||
|
||||
(lsp-hover-highlight (funcall brighten-first common-bg 0.05))
|
||||
(company-bg (funcall brighten-first common-bg 0.1))
|
||||
|
||||
(peek-code '("#0e151a" nil nil))
|
||||
;; Extra colors #1fa345
|
||||
)
|
||||
(custom-theme-set-faces
|
||||
|
@ -75,7 +78,7 @@
|
|||
(funcall face 'mode-line-inactive :bg (funcall darken-first common-bg 0.35) :fg common-fg)
|
||||
(funcall face 'mode-line :bg modeline :fg common-fg)
|
||||
(funcall face 'hl-line :bg (funcall darken-first common-bg 0.15))
|
||||
(funcall face 'region :bg (funcall brighten-first common-bg 0.15))
|
||||
(funcall face 'region :bg highlight)
|
||||
(funcall face 'font-lock-comment-face :fg comment)
|
||||
(funcall face 'font-lock-doc-face :fg doc)
|
||||
(funcall face 'font-lock-keyword-face :fg keyword)
|
||||
|
@ -90,7 +93,14 @@
|
|||
(funcall face 'lsp-face-highlight-read :bg lsp-hover-highlight)
|
||||
(funcall face 'lsp-face-highlight-write :bg lsp-hover-highlight)
|
||||
|
||||
;; company
|
||||
(funcall face 'lsp-ui-peek-filename :fg common-fg)
|
||||
(funcall face 'lsp-ui-peek-header :bg modeline)
|
||||
(funcall face 'lsp-ui-peek-peek :bg peek-code)
|
||||
(funcall face 'lsp-ui-peek-list :bg peek-code)
|
||||
(funcall face 'lsp-ui-peek-selection :bg highlight)
|
||||
(funcall face 'lsp-ui-peek-highlight :bg highlight)
|
||||
|
||||
;; Company
|
||||
(funcall face 'company-tooltip :bg company-bg)
|
||||
(funcall face 'company-tooltip-selection :bg (funcall brighten-first company-bg 0.15))
|
||||
(funcall face 'company-scrollbar-fg :bg (funcall brighten-first company-bg 0.3))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue