Skip to content

michelegera/moonlight.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŒ™ moonlight.nvim

A beautiful Neovim theme with authentic Moonlight VSCode colors.

This theme is built using the structure from koalight.nvim but with the exact color palette from the original Moonlight VSCode theme, providing a consistent experience across editors.

✨ Features

  • 🎨 Authentic Moonlight colors - Uses the exact color palette from Moonlight VSCode
  • 🌳 TreeSitter support - Full semantic highlighting with both legacy and modern syntax
  • πŸ’‘ LSP integration - Beautiful diagnostics, references, and code lens
  • πŸ”Œ Extensive plugin support - 20+ popular plugins pre-configured
  • πŸ“ Italic variants - Elegant italics for comments, keywords, and functions
  • 🎯 Consistent experience - Matches Moonlight VSCode theme exactly

πŸ“¦ Installation

{
  'michelegera/moonlight.nvim',
  lazy = false,
  priority = 1000,
  config = function()
    require('moonlight').setup()
    vim.cmd.colorscheme 'moonlight'
  end,
}
use {
  'michelegera/moonlight.nvim',
  config = function()
    require('moonlight').setup()
    vim.cmd.colorscheme 'moonlight'
  end
}
Plug 'michelegera/moonlight.nvim'

" After plug#end()
lua << EOF
require('moonlight').setup()
EOF
colorscheme moonlight

πŸš€ Usage

Lua

-- Enable the colorscheme
require('moonlight').setup()
vim.cmd.colorscheme 'moonlight'

Vimscript

colorscheme moonlight

🎨 Color Palette

The theme uses the authentic Moonlight color palette:

Color Hex Usage
Background #222436 Main background
Foreground #c8d3f5 Main text
Red #ff757f Errors, deletions
Green #c3e88d Strings, additions
Yellow #ffc777 Warnings, constants
Blue #7cafff Functions, titles
Purple #c4a2ff Keywords, types
Cyan #78dbff Operators, links
Orange #ff966c Numbers
Pink #fca7ea Special characters
Indigo #af9fff Hints

πŸ”Œ Supported Plugins

Core Plugins

UI Enhancements

Navigation & Search

Code Assistance

Other

πŸŒ‘ Lualine Integration

To use the Moonlight theme with Lualine:

require('lualine').setup {
  options = {
    theme = 'moonlight'
  }
}

🎯 Comparison with Koalight

While this theme uses koalight's excellent structure, it differs in several key ways:

Feature moonlight.nvim koalight.nvim
Color Source Moonlight VSCode (exact) Older Moonlight interpretation
Background #222436 #212337
Foreground #c8d3f5 #e4f3fa
Green #c3e88d (softer) #2df4c0 (bright teal)
Blue #7cafff #04d1f9
Purple #c4a2ff #b4a4f4
Plugin Support 20+ plugins 12 plugins

πŸ› οΈ Configuration

Currently, the theme works out of the box with sensible defaults. Configuration options may be added in future releases.

πŸ™ Credits

πŸ“„ License

MIT License - see LICENSE file for details

🌟 Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.


Enjoy the moonlight! πŸŒ™βœ¨

About

A beautiful Neovim theme with authentic Moonlight VSCode colors

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors