Giter Club home page Giter Club logo

oh-my-monokai.nvim's Introduction

Oh My Monokai

Edit your code obnoxiously

oh-my-monokai

Create your own palette

You can easily create your own, just fork this repository and add a file called ./lua/oh-my-monokai/colorscheme/palette/{your_github_user_name}.lua

Copy the default palette to your personal file, customize as desired, and make a pull request

-- ./lua/oh-my-monokai/colorscheme/palette/default.lua

return {
  background = '#1e1e1e',
  text = '#f6f6f6',
  dark = '#19181a',
  dark1 = '#221f22',
  dark2 = '#19181a',
  accent1 = '#ff3f4f',
  accent2 = '#e5a422',
  accent3 = '#ffd945',
  accent4 = '#81f900',
  accent5 = '#00a0e4',
  accent6 = '#e542ff',
  accent7 = '#007dd8',
  accent8 = '#ff8b39',
  black = '#221f22',
  white = '#fcfcfa',
  delimiter = '#fcfcfa',
  magenta = '#e373ce',
  character = '#e373ce',
  number = '#e373ce',
  boolean = '#e373ce',
  float = '#e373ce',
  purple = '#e542ff',
  red = '#ff3f4f',
  op = '#ff3f4f',
  exc = '#ff3f4f',
  kword = '#ff3f4f',
  label = '#ff3f4f',
  peat = '#ff3f4f',
  statement = '#ff3f4f',
  include = '#ff3f4f',
  define = '#ff3f4f',
  macro = '#ff3f4f',
  precondit = '#ff3f4f',
  yellow = '#ffd945',
  preproc = '#ffd945',
  str = '#ffd945',
  orange = '#e5a422',
  identifier = '#e5a422',
  dark_orange = '#ff8b39',
  green = '#81f900',
  func = '#81f900',
  leaf = '#6fd80d',
  blue = '#007dd8',
  type = '#007dd8',
  sky = '#00a0e4',
  teal = '#19d1e5',
  pink = '#ff007c',
  todo = '#ff007c',
  typedef = '#ff007c',
  storageclass = '#ff007c',
  conditional = '#ff007c',
  constant = '#ff007c',
  cyan = '#00dfff',
  special = '#00dfff',
  specialchar = '#00dfff',
  structure = '#00dfff',
  dimmed1 = '#c1c0c0',
  dimmed2 = '#939293', -- border
  dimmed3 = '#727072',
  specialcomment = '#727072',
  comment = '#727072',
  dimmed4 = '#5c6370',
  dimmed5 = '#403e41',
  styles = {
    comment = { italic = true },
    keyword = { italic = true }, -- any other keyword
    type = { italic = true }, -- (preferred) int, long, char, etc
    storageclass = { italic = true }, -- static, register, volatile, etc
    structure = { italic = true }, -- struct, union, enum, etc
    parameter = { italic = true }, -- parameter pass in function
    annotation = { italic = true },
    tag_attribute = { italic = true }, -- attribute of tag in reactjs
  },
}

IMPORTANT: make sure you run script to add your palette to the palette list

bash ./scripts/palette-list.sh && git add . && git commit -m "added palette" && git push

๐Ÿ”Œ Plugin support

๐Ÿ“ฆ Installation

vim-plug

Plug 'justinsgithub/oh-my-monokai.nvim'

packer

use {
  "justinsgithub/oh-my-monokai.nvim",
  config = function()
    require("oh-my-monokai").setup()
  end
}

๐Ÿ”จ Configuration

Example configuration:

require("oh-my-monokai").setup({
  transparent_background = false,
  terminal_colors = true,
  devicons = true, -- highlight the icons of `nvim-web-devicons`
  palette = "default", -- or create your own ^^ e.g. justinsgithub
  inc_search = "background", -- underline | background
  background_clear = {
    -- "float_win",
    "toggleterm",
    "telescope",
    "which-key",
    "renamer"
  },-- "float_win", "toggleterm", "telescope", "which-key", "renamer", "neo-tree"
  plugins = {
    bufferline = {
      underline_selected = false,
      underline_visible = false,
    },
    indent_blankline = {
      context_start_underline = false,
    },
  },
  ---@param c Colorscheme
  override = function(c) end,
})

๐Ÿ“š Usage

  • Enable this colorscheme by using the following command after setup:
" Vim Script
colorscheme oh-my-monokai
require("oh-my-monokai").setup({
  -- ... your config
})
-- lua
vim.cmd([[colorscheme oh-my-monokai]])
  • To enable oh-my-monokai for Lualine:
require('lualine').setup {
  options = {
    -- ...
    theme = 'oh-my-monokai'
    -- ...
  }
}
  • To enable oh-my-monokai for barbecue:
require('barbecue').setup {
  -- ...
  theme = 'oh-my-monokai'
  -- ...
}
  • To enable oh-my-monokai for lightline:
" Vim Script
let g:lightline = {'colorscheme': 'omm'}
  • Override function:
require("oh-my-monokai").setup({
    -- ...
    override = function
      return {
          Normal = { bg = "#000000" }
        }
    end
    -- ...
  })

Commands

  • run command OMMPalette to launch a menu and choose theme palette, you must have nui.nvim installed
  • or run command OMM with parameter to change theme palette: For example:

    OMM justinsgithub

Contributions

Pull requests welcome, especially for adding more plugins support or creating your own palette (instructions above)

Credits

Pretty much all credit goes to monokai-pro.nvim

A large reason for this fork is to provide an easy way for other users to contribute their own palette and make it just the way they want (instructions above).

Also big shout out to monokai-vibrant, the inspiration for this theme.

oh-my-monokai.nvim's People

Contributors

justinsgithub avatar github-actions[bot] avatar

Stargazers

Jose Vega avatar  avatar David Wilson avatar Simon Berg Rasmussen avatar Ervin Racz avatar  avatar Drew Delianides avatar Michel Balamou avatar Ingar Smedstad avatar Julius avatar Adelar da Silva Queirรณz avatar Carl Flint avatar Andy Shevchenko avatar Marcin Paliwoda avatar

Watchers

 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.