Fix the ui-hook to respect cube's flags

This commit is contained in:
Sameer Rahmani 2024-02-11 12:45:53 +00:00
parent 8a275d7873
commit 2491b7f2cf
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@
'(all-the-icons-lgreen ((t (:background "#bd93f9"))))
'(all-the-icons-faicon ((t (:background "#bd93f9"))))
'(font-lock-comment-face ((t (:foreground "#8B9298"))))
;; This fixes lsp-ui-sideline issue
'(lsp-ui-sideline-current-symbol ((t (:line-width -1 :foreground "#bd93f9"))))
'(font-lock-comment-delimiter-face ((t (:foreground "#5B6268")))))
(enable-theme 'dracula)

View File

@ -185,7 +185,8 @@ TODO: Docs"
(let ((fg42/---f-sym
(lambda ()
(when (not (null ,ui-hook))
(add-hook 'fg42/ui-hook #',ui-hook))
(when-flag ,flag-var
(add-hook 'fg42/ui-hook #',ui-hook)))
(when (not (null ,init-hook))
(funcall #',init-hook params))