Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Code Colourscheme for Nvim

Unofficial port of the OpenCode oc-2 theme for Neovim

Preview

Variants

  • oc-2 — faithful port of the original oc-2 theme, keeping as close to the source as possible
  • oc-2-noir — custom adaptation with slightly more contrast (this variant may change more as I'm still playing with the colours)

Installation

Using Lazy:

{ 'builtbyleo/oc-2.nvim' },

Using Packer:

use 'builtbyleo/oc-2.nvim'

Configuration

require('oc2').setup({
    theme = "oc-2", -- "oc-2" | "oc-2-noir"
    overrides = {}, -- A dictionary of highlight group overrides
})

Then set the colorscheme:

vim.cmd.colorscheme('oc-2')
-- or
vim.cmd.colorscheme('oc-2-noir')

Status

Early stage — some colours may not be accurate yet. The noir variant in particular is still evolving. Very happy for contributions! If you spot an inaccurate colour or have improvements, please open an issue or PR.

License

MIT License

Releases

Packages

Contributors

Languages