Skip to content

Port of VSCode's Moonlight colorscheme for NeoVim written in Lua with built-in support for native LSP, TreeSitter and many more plugins

License

Notifications You must be signed in to change notification settings

tapsu01/moonlight.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

🌘 shaunsingh/moonlight.nvim

Modified version of Marko Cerovac's Material.nvim, based off of the Moonlight Theme for VSCode

preview github

🌠 Features

moonlight.nvim is meant to be a modern colorscheme written in lua for NeoVim that supports a lot of the new features added to NeoVim like built-in LSP and TreeSitter

⚡️ Requirements

  • Neovim >= 0.5.0

🌙 Installation

Install via your favourite package manager:

" If you are using Vim-Plug
Plug 'shaunsingh/moonlight.nvim'
-- If you are using Packer
use 'shaunsingh/moonlight.nvim'

🌓 Usage

Enable the colorscheme:

"Vim-Script:
colorscheme moonlight
--Lua:
require('moonlight').set()

To enable the moonlight theme for Lualine, simply specify it in your lualine settings:

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

⚙️ Configuration

Option Default Description
moonlight_italic_comments 'false' Make comments italic
moonlight_italic_keywords 'false' Make keywords italic
moonlight_italic_functions 'false' Make functions italic
moonlight_italic_variables 'false' Make variables and identifiers italic
moonlight_contrast 'true' Make sidebars and popup menus like nvim-tree and telescope have a different background
moonlight_borders 'false' Enable the border between verticaly split windows visable
moonlight_disable_background 'false' Disable the setting of background color so that NeoVim can use your terminal background
-- Example config in lua
vim.g.moonlight_italic_comments = 'true'
vim.g.moonlight_italic_keywords = 'true'
vim.g.moonlight_italic_functions = 'true'
vim.g.moonlight_italic_variables = 'false'
vim.g.moonlight_contrast = 'true'
vim.g.moonlight_borders = 'false'
vim.g.moonlight_disable_background = 'false'

-- Load the colorscheme
require('moonlight').set()
" Example config in Vim-Script
let g:moonlight_italic_comments = 'true'
let g:moonlight_italic_keywords = 'true'
let g:moonlight_italic_functions = 'true'
let g:moonlight_italic_variables = 'false'
let g:moonlight_contrast = 'true'
let g:moonlight_borders = 'false '
let g:moonlight_disable_background = 'false'

-- Load the colorsheme
colorscheme moonlight

Original Readme: https://github.com/marko-cerovac/material.nvim/blob/pure-lua/README.md

About

Port of VSCode's Moonlight colorscheme for NeoVim written in Lua with built-in support for native LSP, TreeSitter and many more plugins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 97.5%
  • Vim Script 2.5%