Skip to content

Hjagu09/yummy.kak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

YUMMY.kak

Screenshot from 2024-03-16 14-00-13 dev_conf_v2 Screenshot from 2024-03-16 22-13-41 yummy_std_config Screenshot from 2024-03-16 14-02-36

Yummy.kak is a modeline for kakoune that renders a beutiful bar. It has the option to either be pined to the rigth (kakoune defualt) or fill the whole width of the screen. It's configured via two simpel format strings and a dozen kakoune faces and options.

Instalation

Put the yummy.kak and yummy_configs.kak script in your autoload or install it using a plugin maneger and then put this in your kakrc as a config base line:

require-module yummy_std_config
yummy-enable

Some modules (git, lsp, powerline_config) also require a NERD font or that you change the config to use other text icons.

configuring

The main variables used for configuration is yummy_fmt_left and yummy_fmt_rigth. There exactly what you think they are, the format of the left and right side of the bar. They may contain module names preceded by a dollar sign and free text that's to be rendered using the StatusLine face. Valid modules are:

  • mode: the current mode, insert/normal
  • bufname: name of the current buffer
  • modified: text icon that appears while the buffer has unwritten changes
  • clock: a clock. could also be used to display the current date
  • client_servee: displays the current client and server names
  • selection: selection location and count
  • git: current git branch
  • lsp_error: lsp error count
  • lsp_warn: lsp warning count
  • lsp_info: lsp info count
  • lsp_hint: lsp hint count

There is also two modules that will only work on kakoune versions v2023.08.05-44-g5fdf0d08 or newer. Those are for that reson not included in any of the standard configs.

  • register: current selected register
  • count: current count for normal mode commands

All modules expected mode are rendered with the face yummy_[module name]_face. All faces are buy default derived from the standard kakoune status line faces. Some modules also expose additional options to customize them.

  • mode exposes two options for the text shown in insert/normal mode. It also exposes two faces for use for rendering in normal/insert mode
  • bufname exposes the SH string used to generate it
  • modified exposes a option for the text icon used and also a option for the SH string used to render the module
  • the clock module exposes the time format. This is passed to the command line date to get the current time
  • client_server, selections, git, register, count and all the lsp modules exposes one SH string each that's used to render them

example configurations

yummy_configs.kak contain a few example config. Feel free to use them as is or look at them for reference.

yummy_powerline_config powerline_v2 yummy_devs_config This is my config :). It's the only one that hard codes colors dev_conf_v2 yumy_powerline_left_config Powerline but to the left Screenshot from 2024-03-16 22-13-41 yummy_std_config kinda boring simple example config yummy_std_config yummy_the_rigth_side_config simpel one side config Screenshot from 2024-03-16 14-02-36

About

Yet another Usless Modeline Maneger: Yummy.kak

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published