corfu support

This commit is contained in:
BirDt_ 2025-08-16 22:54:32 +08:00
parent 9dd1053a1b
commit 22ea42f3d7
5 changed files with 28 additions and 3 deletions

View file

@ -45,6 +45,7 @@ Ouroboros aims to support the following additional Emacs packages natively with
- Rainbow Delimiters
- HL-todo mode
- Tab-bar-mode
- Corfu
* Screenshots
[[file:preview.gif]]

View file

@ -226,7 +226,13 @@
`(company-tooltip ((t (:inherit fixed-pitch :background ,(darken accent-one 0.5) :foreground ,fg-main))))
`(company-tooltip-common ((t (:foreground ,(lighten accent-three 0.2)))))
;;; HL-todo
;;; Corfu
`(corfu-default ((t (:inherit company-tooltip))))
`(corfu-current ((t (:inherit company-tooltip-common))))
`(corfu-border ((t (:background ,accent-one-saturated))))
`(corfu-bar ((t (:background ,(darken fg-main 0.2)))))
;;; HL-todo
`(hl-todo ((t (:inherit default :background ,(lighten accent-four-desaturated 0.2) :foreground ,(darken fg-main 0.3)))))
)

View file

@ -225,6 +225,12 @@
;;; Company Mode
`(company-tooltip ((t (:inherit fixed-pitch :background ,accent-one :foreground ,bg-main))))
`(company-tooltip-common ((t (:foreground ,(darken accent-four 0.2)))))
;;; Corfu
`(corfu-default ((t (:inherit company-tooltip))))
`(corfu-current ((t (:inherit company-tooltip-common))))
`(corfu-border ((t (:background ,accent-one-saturated))))
`(corfu-bar ((t (:background ,accent-one))))
;;; HL-todo
`(hl-todo ((t (:inherit default :background ,(darken accent-one 0.2) :foreground ,bg-main))))

View file

@ -226,7 +226,13 @@
`(company-tooltip ((t (:inherit fixed-pitch :background ,(darken accent-one 0.5) :foreground ,fg-main))))
`(company-tooltip-common ((t (:foreground ,(lighten accent-three 0.2)))))
;;; HL-todo
;;; Corfu
`(corfu-default ((t (:inherit company-tooltip))))
`(corfu-current ((t (:inherit company-tooltip-common))))
`(corfu-border ((t (:background ,accent-one-saturated))))
`(corfu-bar ((t (:background ,(lighten bg-main 1.5)))))
;;; HL-todo
`(hl-todo ((t (:inherit default :background ,(lighten accent-four-desaturated 0.2) :foreground ,(darken fg-main 0.3)))))
)

View file

@ -226,7 +226,13 @@
`(company-tooltip ((t (:inherit fixed-pitch :background ,(darken bg-main 0.3) :foreground ,(lighten fg-main 0.3)))))
`(company-tooltip-common ((t (:foreground ,(lighten accent-one-saturated 0.2)))))
;;; HL-todo
;;; Corfu
`(corfu-default ((t (:inherit company-tooltip))))
`(corfu-current ((t (:inherit company-tooltip-common))))
`(corfu-border ((t (:background ,accent-one-saturated))))
`(corfu-bar ((t (:background ,accent-one))))
;;; HL-todo
`(hl-todo ((t (:inherit default :background ,(lighten accent-four-desaturated 0.2) :foreground ,(darken fg-main 0.3)))))
)