Skip to content

sailorfe/luna.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

81 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

luna.nvim

a neovim colorscheme descended from fairyfloss and sister to moonqueen.nvim. built with lush.

foot

this repository is mirrored to github from codeberg.

palette

key hex
base base #271B2D
surface surface #372640
overlay overlay #483253
text text #EAD9F2
light light #F8EBFF
mars mars #F07575
jupiter jupiter #D1F075
venus venus #F0D175
mercury mercury #7DB2E8
saturn saturn #B27DE8
moon moon #E87DB3
low low #291D2F
med med #523C5D
high high #7A5C8A

features

plugins

ports

installation

lua

with lazy:

return {
    "https://codeberg.org/sailorfe/luna.nvim",
--    init = function()
--        vim.cmd.colorscheme("luna")
--    end,
}

alternately, you can skip init = function() and declare vim.cmd.colorscheme('luna') somewhere in your init.lua after plugin load.

it has just two options:

name type default description
transparent boolean false sets Normal and linked hl groups to none to show terminal background.
overrides table / boolean false override any hl groups you don't like or to add new ones.

vimscript

with vim-plug:

Plug 'https://codeberg.org/sailorfe/luna.nvim', { 'as': 'luna', 'branch': 'main' }

or you can place colors/luna.vim anywhere in your runtimepath:

curl -LO https://codeberg.org/sailorfe/luna.nvim/raw/branch/main/extras/vim/luna.vim

then set colorscheme with colorscheme luna either in your vimrc or temporarily with a command:

" .vimrc
set background=dark
syntax on
colorscheme luna

contributing

git clone https://codeberg.org/sailorfe/luna.nvim
cd luna.nvim

make pull requests to codeberg.

adding plugins

  1. install lush and shipwright.
  2. nvim lua/luna/lush.lua
  3. :Lushify
  4. append new highlight groups to the bottom of the table
  5. ./build.sh lua

Warning

make sure you do not have luna installed from this repository while developing. point neovim or your plugin manager to your local clone or else shipwright will get lost.

adding ports

theme generation is helped by the Makefile at project root.

  1. create templates/$APP.*:
    • for hex codes prefixed with hashes (#B27DE8), use [[key]]. examples: alacritty.toml, wezterm.toml.
    • for hex codes without hashes (B27DE8), use {{key}}. examples: foot.ini, tty.conf.
  2. add the output path $APP/luna.* to the outputs dictionary in scripts/generator.py.
  3. (optional) ensure palette.json is up to date: make palette.
  4. run the python script: make generate.

acknowledgments

  • fairyfloss for inspiring this journey into colorschemes to begin with, and the low-contrast, magical girl vibes
  • evangelion.nvim for weeb + build.sh inspiration
  • tokyonight.nvim for repository structure

About

๐Ÿˆโ€โฌ›๐Ÿ”ฎ mystical neovim colorscheme from planet mau (codeberg mirror)

Topics

Resources

License

Stars

Watchers

Forks

Contributors