Code Monkey home page Code Monkey logo

monokai.nvim's Introduction

Neovim Monokai Pro

Monokai Pro theme for Neovim with tree-sitter support. This theme have been forked from this amazing repo tanvirtin/monokai.nvim.

Prerequisites

Neovim >= 0.5

Installation

Plugin Manager Command
Packer use 'malbernaz/monokai.nvim'
Vim-plug Plug 'malbernaz/monokai.nvim'

Usage

In VimL:

syntax on
colorscheme monokai

In Lua:

require('monokai').setup({})

Customization

It is possible to customize Monokai theme with setup function (only in Lua). Passed argument will override default configuration values witch are:

{
  palette = {
    base1 = "#211F22",
    base2 = "#26292C",
    base3 = "#2E323C",
    base4 = "#3f4550",
    base5 = "#484e5b",
    base6 = "#5a6272",
    base7 = "#6c7689",
    white = "#FCFCFA",
    pink = "#FF6188",
    green = "#A9DC76",
    aqua = "#78DCE8",
    yellow = "#FFD866",
    orange = "#FC9867",
    purple = "#AB9DF2",
    diff_add = "#3D5213",
    diff_remove = "#4A0F23",
    diff_change = "#27406B",
    diff_text = "#23324D",
  },
  custom_hlgroups = {},
}

An example of this would be as follows:

local monokai = require('monokai')
local palette = monokai.palette

monokai.setup {
  palette = {
    diff_text = '#133337',
  },
  custom_hlgroups = {
    TSInclude = {
      fg = palette.aqua,
    },
    GitSignsAdd = {
      fg = palette.green,
      bg = palette.base2
    },
    GitSignsDelete = {
      fg = palette.pink,
      bg = palette.base2
    },
    GitSignsChange = {
      fg = palette.orange,
      bg = palette.base2
    },
  }
}

Extras

An extra color config for Kitty, can be found in extras and a lualine config is also available in monokai.lualine.

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.