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 - Rainbow Delimiters
- HL-todo mode - HL-todo mode
- Tab-bar-mode - Tab-bar-mode
- Corfu
* Screenshots * Screenshots
[[file:preview.gif]] [[file:preview.gif]]

View file

@ -226,6 +226,12 @@
`(company-tooltip ((t (:inherit fixed-pitch :background ,(darken accent-one 0.5) :foreground ,fg-main)))) `(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))))) `(company-tooltip-common ((t (:foreground ,(lighten accent-three 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 ,(darken fg-main 0.2)))))
;;; HL-todo ;;; HL-todo
`(hl-todo ((t (:inherit default :background ,(lighten accent-four-desaturated 0.2) :foreground ,(darken fg-main 0.3))))) `(hl-todo ((t (:inherit default :background ,(lighten accent-four-desaturated 0.2) :foreground ,(darken fg-main 0.3)))))
) )

View file

@ -226,6 +226,12 @@
`(company-tooltip ((t (:inherit fixed-pitch :background ,accent-one :foreground ,bg-main)))) `(company-tooltip ((t (:inherit fixed-pitch :background ,accent-one :foreground ,bg-main))))
`(company-tooltip-common ((t (:foreground ,(darken accent-four 0.2))))) `(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
`(hl-todo ((t (:inherit default :background ,(darken accent-one 0.2) :foreground ,bg-main)))) `(hl-todo ((t (:inherit default :background ,(darken accent-one 0.2) :foreground ,bg-main))))
) )

View file

@ -226,6 +226,12 @@
`(company-tooltip ((t (:inherit fixed-pitch :background ,(darken accent-one 0.5) :foreground ,fg-main)))) `(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))))) `(company-tooltip-common ((t (:foreground ,(lighten accent-three 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 ,(lighten bg-main 1.5)))))
;;; HL-todo ;;; HL-todo
`(hl-todo ((t (:inherit default :background ,(lighten accent-four-desaturated 0.2) :foreground ,(darken fg-main 0.3))))) `(hl-todo ((t (:inherit default :background ,(lighten accent-four-desaturated 0.2) :foreground ,(darken fg-main 0.3)))))
) )

View file

@ -226,6 +226,12 @@
`(company-tooltip ((t (:inherit fixed-pitch :background ,(darken bg-main 0.3) :foreground ,(lighten fg-main 0.3))))) `(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))))) `(company-tooltip-common ((t (:foreground ,(lighten accent-one-saturated 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
`(hl-todo ((t (:inherit default :background ,(lighten accent-four-desaturated 0.2) :foreground ,(darken fg-main 0.3))))) `(hl-todo ((t (:inherit default :background ,(lighten accent-four-desaturated 0.2) :foreground ,(darken fg-main 0.3)))))
) )