Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/UtkarshVerma/molokai.nvim

Molokai colorscheme for Neovim.
https://github.com/UtkarshVerma/molokai.nvim

Last synced: 3 months ago
JSON representation

Molokai colorscheme for Neovim.

Awesome Lists containing this project

README

        

# molokai.nvim

A dark Neovim theme written in Lua ported from the Visual Studio Code [Dark Molokai](https://github.com/nonylene/vscode-dark-molokai-theme) theme.

> This repo heavily borrows source code from the awesome [tokyonight](https://github.com/folke/tokyonight.nvim/) theme for Neovim.

## ✨ Features

- supports the latest Neovim 5.0 features like TreeSitter and LSP
- minimal inactive statusline
- vim terminal colors
- darker background for sidebar-like windows
- **lualine** theme

### Plugin Support

- [TreeSitter](https://github.com/nvim-treesitter/nvim-treesitter)

- [Indent Blankline](https://github.com/lukas-reineke/indent-blankline.nvim)

- [Lualine](https://github.com/hoob3rt/lualine.nvim)

## ⚡️ Requirements

- Neovim >= 0.5.0

## 📦 Installation

Install the theme with your preferred package manager:

[vim-plug](https://github.com/junegunn/vim-plug)

```vim
Plug 'UtkarshVerma/molokai.nvim', { 'branch': 'main' }
```

[packer](https://github.com/wbthomason/packer.nvim)

```lua
use 'UtkarshVerma/molokai.nvim'
```

## 🚀 Usage

Enable the colorscheme:

```vim
" Vim Script
colorscheme molokai
```

```lua
-- Lua
vim.cmd[[colorscheme molokai]]
```

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

```lua
require('lualine').setup {
options = {
-- ... your lualine config
theme = 'molokai'
-- ... your lualine config
}
}
```

## 🍭 Extras

You can easily use the color palette for other plugins inside your Neovim config:

```lua
local colors = require("molokai.colors").setup({}) -- pass in any of the config options as explained above
local utils = requires("molokai.util")

aplugin.background = colors.bg_dark
aplugin.my_error = util.brighten(colors.red1, 0.3)
```