Skip to content

🌸 sarnai - A Mongolian-inspired colorscheme for neovim

Notifications You must be signed in to change notification settings

titembaatar/sarnai.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sarnai.nvim

ᠰᠠᠷᠠᠨᠠᠢ

This is the Neovim colorscheme repository for sarnai. The theme repository (including palettes, integrations, etc...) is at: 👉 titembaatar/sarnai

✨ Features

  • Two variants: 🌸 Khavar (dark) and ❄️ Ovol (light)
  • Aim to reduce eye strain
  • Treesitter integration
  • Plugin ecosystem compatibility
  • Customizable
  • Caching for improved performance

📥 Installation

Using lazy.nvim

{
  "titembaatar/sarnai.nvim",
  lazy = false,
  priority = 1000,
  opts = {
    -- your configuration comes here
    -- leave it empty to use the default settings
    style = "khavar", -- khavar or ovol
    transparent = false, -- true enables transparent background
  },
}

📸 Screenshots

Khavar (Dark Theme)

Khavar Theme

Ovol (Light Theme)

Ovol Theme

🎨 Usage

After installation, you can set the colorscheme using:

-- In your init.lua
vim.cmd.colorscheme("sarnai")       -- Default (khavar/dark)
-- or
vim.cmd.colorscheme("sarnai-khavar") -- Explicitly dark theme
-- or
vim.cmd.colorscheme("sarnai-ovol")   -- Light theme

⚙️ Configuration

Sarnai.nvim comes with these defaults:

require("sarnai").setup({
  -- The theme style: "khavar" (dark) or "ovol" (light)
  style = "khavar",

  -- Enable transparent background
  transparent = false,

  -- Set terminal colors
  terminal_colors = true,

  -- Configure syntax highlighting styles
  styles = {
    -- Set to false to disable a style globally
    italic = true,
    bold = true,
    underline = true,

    -- Specific syntax elements
    comments = { italic = true },
    keywords = { italic = true },
    functions = {},
    variables = {},
  },

  -- Plugin integrations
  plugins = {
    -- Enable all plugins by default (when not using lazy.nvim)
    all = true,

    -- Auto-detect plugins via lazy.nvim
    auto = true,

    -- Override specific plugins
    -- mini = true,
    -- trouble = true,
  },

  -- Enable caching for better performance
  cache = true,

  -- Override colors
  on_colors = function(colors)
    -- Example: Customize the pink accent
    -- colors.palette.sarnai = "#e5a3ab"
  end,

  -- Override highlights
  on_highlights = function(highlights, colors)
    -- Example: Custom comment styling
    -- highlights.Comment = { fg = colors.palette.muted, italic = true }
  end,
})

🌟 Supported Plugins

Sarnai.nvim provides highlighting for:

🤝 Contributing

Contributions are welcome! Feel free to report issues, suggest features, or submit pull requests.

📜 License

MIT License

About

🌸 sarnai - A Mongolian-inspired colorscheme for neovim

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages