SOURCEHUT
THIS PROJECT HAS MOVED TOone.kak
One Light
and One Dark
colorschemes for Kakoune. Based on vim-one.
Includes an additional One Darker
colorscheme, which is a personalized flavor of One Dark
with readability improvements and some syntax changes.
Includes optional faces for colored curly underlines. This features requires Kakoune 2021.10.28 or newer. This feature may not work on all terminal emulators.
Installation
With plug.kak:
plug "raiguard/one.kak" theme
You can also manually put the colorscheme file(s) in your .config/kak/colors
directory.
Usage
Enable the desired colorscheme using the colorscheme
command in your kakrc
:
colorscheme one-darker
# Requires kakoune 2021.10.28 or newer, and a compatible terminal emulator:
one-enable-fancy-underlines
Provided are one-light
, one-dark
, and one-darker
colorschemes.
Changes in One Darker
over One Dark
are:
- Darker background color
- Variables are white instead of red
- Operators are red instead of white
- Comments are more visible
Plugin support
one.kak
includes colors for the following plugins:
- kak-lsp
- LSP info boxes are syntax highlighted
- Inlay hints inherit from the
type
face, with a dim modifier - Special
enum
andparameter
faces are provided for semantic highlighting (requires configuration inkak-lsp.toml
)enum
is cyanparameter
is italicized and uses thevariable
color
- Diagnostics are underlined, inlay diagnostics and diagnostic line flags are colored as thus:
- Error: red
- Warning: yellow
- Info: blue
- Hint: bright white / dark black (in dark and light themes respectively)
- If
one-enable-fancy-underlines
are enabled, diagnostics are underlined in their respective colors using curly underlines - Other references to the current symbol are highlighted in a slightly lighter background color
- kak-rainbower
- Brackets are colored yellow, magenta, and blue
Using scheme constructs in your own scripts
You can use the scheme colors and other properties in your own scripts by using the following options in expansions:
add-highlighter global/trailing-whitespaces regex "(\h+)$" "1:default,rgba:%opt{darkred}%opt{selectionalpha}"
Colors
-
fg
-
bg
-
subbg
-
lightred
-
darkred
-
green
-
lightorange
-
darkorange
-
blue
-
magenta
-
cyan
-
comment
Transparencies
cursoralpha
selectionalpha
Other
menuselection
(cursor color adjusted for thssubbg
background, since menus do not support transparency)
Feature screenshots
Alpha-blended selections
Obvious secondary selections
kak-lsp diagnostics
To enable curly underlines, invoke the one-enable-fancy-underlines
command after enabling the colorscheme. Please note that this will not work on all terminal emulators.