/one_monokai.nvim

One Monokai for Neovim

Primary LanguageLuaMIT LicenseMIT

logo
One Monokai Nvim

VSCode One Monokai theme written in Lua for Neovim.

transparent demo demo

🚀 Installation

use "cpea2506/one_monokai.nvim"

Requirement

  • Neovim version >= 0.8.0
  • (Optional) Nvim Treesitter for better syntax highlighting. 😇

⚙️ Setup

vim.cmd.colorscheme "one_monokai"

Or prefer below if you have your custom options

require("one_monokai").setup({
    -- your options
})

Options

Option Description Type Note
transparent enable transparent background boolean N/A
colors custom colors table N/A
themes custom highlighting groups function accepts colors as argument

Default

{
    transparent = false,
    colors = {},
    themes = function(colors)
        return {}
    end,
}

Customization example

You can easily change highlighting groups. 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 = "black", bg = "#ec6075", standout = true },
            NormalFloat = { link = "Normal" },
        }
    end,
})

🍾 Plugins support

lualine demo

require("lualine").setup {
    options = {
    -- ...other options
    theme = "one_monokai"
  }
}

👀 Inspiration

This is the best theme I’ve ever seen in my eyes. I’ve tried it written in Vim for a long time and decided to write it in Lua for compatibility with Neovim, and make it easy to do some custom changes.

Thanks for these talented and amazing people:

⭐ Cool One Monokai projects