Coder Social home page Coder Social logo

one_monokai.nvim's Introduction

logo
One Monokai Nvim

VSCode One Monokai colorscheme written in Lua for Neovim.

demo

Normal background


transparent demo

Transparent background

๐Ÿš€ Installation

{
  "cpea2506/one_monokai.nvim",
}

Requirement

  • Neovim >= 0.9.1
  • nvim-treesitter for better syntax highlighting (optional) ๐Ÿ˜‡

โš™๏ธ Setup

vim.cmd.colorscheme "one_monokai"

Or prefer below if you want to customize some options

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

Options

Option Description Type Note
transparent enable transparent background boolean N/A
colors custom colors table<string, string> N/A
themes custom highlight groups function(colors): tables :h nvim_set_hl
italics enable italics boolean N/A

Default

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

Customization example

Available colors and themes

  1. colors
  2. themes

Color provides two method, darken and lighten to blend color based on provided alpha value. You can access them via:

colors["<color-name>"]:darken(alpha)
colors["<color-name>"]:lighten(alpha)

Example

require("one_monokai").setup({
    transparent = true,  -- enable transparent window
    colors = {
        lmao = "#ffffff", -- add new color
        pink = "#ec6075", -- replace default color
    },
    themes = function(colors)
        -- change highlight of some groups,
        -- the key and value will be passed respectively to "nvim_set_hl"
        return {
            Normal = { bg = colors.lmao },
            DiffChange = { fg = colors.white:darken(0.3) },
            ErrorMsg = { fg = colors.pink, standout = true },
            ["@lsp.type.keyword"] = { link = "@keyword" }
        }
    end,
    italics = false, -- disable italics
})

๐Ÿพ 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:

๐Ÿ“œ Contribution

Please see the contributing guidelines for detailed instructions on how to contribute to this colorscheme.

one_monokai.nvim's People

Contributors

cpea2506 avatar crivion avatar github-actions[bot] avatar nomorechokedboy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.