GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - garymjr/opencode.nvim: A neovim colorscheme based on the default opencode theme

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
colors
colors
 
 
extras/ghostty
extras/ghostty
 
 
lua/opencode
lua/opencode
 
 
README.md
README.md
 
 

Repository files navigation

opencode.nvim

A Neovim theme based on the OpenCode color palette with light and dark variants.

Features

  • Light and dark variants
  • Extensive syntax highlighting
  • Support for popular plugins (Telescope, NvimTree, WhichKey, nvim-cmp, GitSigns)
  • Configurable styles and transparency
  • Tree-sitter support
  • Terminal colors

Installation

Using lazy.nvim:

{
  "garymjr/opencode.nvim",
  config = function()
    require("opencode").setup()
  end,
}

Usage

-- Basic setup
require("opencode").setup()

-- Load the colorscheme
vim.cmd("colorscheme opencode")

Configuration

require("opencode").setup({
  style = "dark", -- "dark" or "light"
  transparent = false, -- Enable transparent background
  terminal_colors = true, -- Apply colors to terminal
  styles = {
    comments = { italic = true },
    keywords = { bold = true },
    functions = {},
    variables = {},
    types = {},
  },
  integrations = {
    telescope = true,
    nvimtree = true,
    which_key = true,
    cmp = true,
    gitsigns = true,
    treesitter = true,
  },
  highlight_overrides = {
    -- Custom highlight overrides
    Normal = { fg = "#ffffff" },
  },
})

Options

  • style: Theme style ("dark" or "light")
  • transparent: Enable transparent background
  • terminal_colors: Apply colors to the integrated terminal
  • styles: Style configurations for different syntax elements
  • integrations: Enable/disable plugin integrations
  • highlight_overrides: Custom highlight group overrides

Switching Themes

You can switch between light and dark themes:

-- Switch to dark theme
require("opencode").config.style = "dark"
require("opencode").load()

-- Switch to light theme
require("opencode").config.style = "light"
require("opencode").load()

Color Palette

The theme is based on the OpenCode color palette with carefully selected colors for optimal readability and visual comfort.

Dark Theme

  • Background: #0a0a0a
  • Primary: #fab283
  • Secondary: #5c9cf5
  • Accent: #9d7cd8
  • Text: #eeeeee

Light Theme

  • Background: #ffffff
  • Primary: #3b7dd8
  • Secondary: #7b5bb6
  • Accent: #d68c27
  • Text: #1a1a1a

Supported Plugins

  • Telescope.nvim
  • NvimTree
  • WhichKey.nvim
  • nvim-cmp
  • GitSigns.nvim
  • Tree-sitter

License

MIT License

About

A neovim colorscheme based on the default opencode theme

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.