Skip to content

Shobhit-Nagpal/chai.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chai.nvim

Chai for Neovim: A warm, cozy theme for chill coding vibes.

This theme is a Neovim port of the chai theme for VSCode, created by Hitesh Choudhary sir. It primarily draws inspiration from the dark theme variant.

chai.nvim preview

Features

  • 🌙 Dark theme optimized for long coding sessions
  • 🎨 Carefully crafted color palette
  • 🔌 Extensive plugin support
  • ⚡️ Fast and lightweight
  • 🎯 Comprehensive syntax highlighting
  • 🖼️ Support for transparent backgrounds
  • 🎭 Customizable through options

Installation

Using Lazy.nvim

require("chai").setup {
    "Shobhit-Nagpal/chai.nvim",
    dependencies = {
        "tjdevries/colorbuddy.nvim"
    },
}
use {
  "Shobhit-Nagpal/chai.nvim",
  requires = {
    "tjdevries/colorbuddy.nvim",
  }
}

Configuration

Default Options

require("chai").setup({
  -- Enable italic comments
  comment_italics = true,
  
  -- Enable transparent background
  transparent_background = false,
  
  -- Enable transparent floating windows
  transparent_float_background = false,
  
  -- Reverse visual selection colors
  reverse_visual = false,
  
  -- Dim non-current windows
  dim_nc = true,
  
  -- Disable search highlight group in cmp cmdline
  cmp_cmdline_disable_search_highlight_group = false,
  
  -- Make telescope borders follow float background
  telescope_border_follow_float_background = false,
  
  -- Make lspsaga borders follow float background
  lspsaga_border_follow_float_background = false,
  
  -- Enable background for diagnostic virtual text
  diagnostic_virtual_text_background = false,
  
  -- Override default colors
  colors = {
    -- Add your color overrides here
    -- Example: primary = "#ff0000"
  },
  
  -- Override default themes
  themes = {
    -- Add your theme overrides here
    -- Example: background = "#000000"
  }
})

Example with Bufferline

require("bufferline").setup({
  options = {
    highlights = require("chai.plugins.bufferline"),
  }
})

Example with Lualine

require("lualine").setup({
  options = {
    theme = "chai",
  },
})

Plugin Support

chai.nvim includes support for the following plugins:

Dependencies

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.