cpea2506/one_monokai.nvim

github github
tree-sitter-supported-colorscheme
star 7
stars
alert-circle 0
open issues
users 1
subscribers
git-branch 1
forks
CREATED

2021-10-29

UPDATED

23 days ago


One Monokai Nvim

Vscode One Monokai theme written in Lua for Neovim.

Installation

use 'cpea2506/one_monokai.nvim'

Note

  • Require Neovim >= 0.7
  • You may need Nvim Treesitter for better syntax highlighting. 😇

Setup

require("one_monokai").setup()

Options

  • transparent: enable transparent background.
  • colors: override list default colors.
  • themes: override list default highlight groups. The function accpet colors as argument

Default

{
    transparent = false
    colors = require("one_monokai.colors"),
    themes = function(colors)
        return {}
    end
}

Customize example

You can easily custom your highlight group. Override the list of supported values or add more on your own.

  1. colors
  2. themes
require("one_monokai").setup({
    colors = {
        green = "#00ff00",
        blue = "#0000ff",
        roman = "#e36965",
        lmao = "#282c34",
    },
    themes = function(colors)
        return {
            Normal = { bg = colors.lmao },
            Comment = { fg = colors.pink, italic = true },
            ErrorMsg = { fg = "#000000", bg = "#ec6075", standout = true },
        }
    end,
})

Inspiration

This is the best theme I've ever seen in my eyes. I tried it written in Vim for a long time and found it's not so easy to do configuration. So I decided to write it in Lua for compatibility with Neovim.

Thanks for these talented and amazing people: