Reference
Complete reference documentation for SilkCircuit.
Quick Links
| Section | Description |
|---|---|
| Commands | All available Vim commands |
| Colors | Complete color palette reference |
| Highlight Groups | Neovim highlight group mappings |
| Health Check | Diagnostics and troubleshooting |
API Reference
Setup Function
lua
require("silkcircuit").setup({
-- Options
})Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
variant | string | "neon" | Theme variant |
transparent | boolean | false | Transparent background |
terminal_colors | boolean | true | Configure terminal colors |
dim_inactive | boolean | false | Dim inactive windows |
styles | table | comments italic | Syntax styling options |
integrations | table | all 39 enabled | Plugin integrations |
on_highlights | function | nil | Custom highlights callback |
Styles Options
lua
styles = {
comments = { italic = true },
keywords = { bold = true },
functions = { bold = true, italic = true },
variables = {},
strings = { italic = true },
}Available style attributes:
italic: Render in italicbold: Render in boldunderline: Add underlinestrikethrough: Add strikethrough
Custom Highlights
lua
on_highlights = function(highlights, colors)
-- Access theme colors
highlights.Function = { fg = colors.cyan, bold = true }
-- Custom colors
highlights.MyGroup = { fg = "#ff00ff", bg = "#000000" }
endAvailable Colors
The colors table in on_highlights includes:
| Color | Description |
|---|---|
purple | Keywords, control flow |
cyan | Functions, methods |
pink | Tags, booleans |
pink_soft | Strings |
coral | Numbers, constants |
yellow | Classes, types |
green | Success, additions |
red | Errors, deletions |
gray | Line numbers, glyphs |
comment | Comments (purple) |
bg | Background |
fg | Foreground |
Module Reference
Core Modules
| Module | Purpose |
|---|---|
silkcircuit | Main entry point |
silkcircuit.config | Configuration management |
silkcircuit.theme | Highlight definitions |
silkcircuit.variants | Variant system |
silkcircuit.palette | Color definitions |
Utility Modules
| Module | Purpose |
|---|---|
silkcircuit.util | Helper functions |
silkcircuit.commands | Vim commands |
silkcircuit.health | Health checks |
silkcircuit.preferences | Persistent settings |
Integration Modules
| Module | Purpose |
|---|---|
silkcircuit.integrations | Plugin detection |
silkcircuit.integrations.* | Individual plugins |
Files Reference
Core Files
lua/silkcircuit/
├── init.lua # Entry point
├── config.lua # Configuration
├── theme.lua # Highlight definitions
├── variants.lua # Variant system
├── palette.lua # Color palette
├── util.lua # Utilities
├── commands.lua # Vim commands
├── health.lua # Health checks
├── preferences.lua # Persistence
└── integrations/ # Plugin integrationsUser Files
| File | Purpose |
|---|---|
~/.local/share/nvim/silkcircuit_preferences.json | Saved preferences |
