- Add config.lua for comprehensive configuration options (transparent, italic_comments, bold_keywords, bold_functions, bold_types, terminal_colors) - Add highlights.lua with 500+ highlight groups for 30+ plugins (Telescope, NvimTree, Neo-tree, GitSigns, nvim-cmp, Lazy.nvim, Mason, etc.) - Add colors/ directory for :colorscheme command support - Add terminal colors (16-color palette for :terminal) - Add test suite (test/test_colors.lua) - Add development tools (selene.toml, stylua.toml, vim.toml) - Add CHANGELOG.md following Keep a Changelog format - Fix colors.lua not being used by init.lua - Fix setup(opts) not applying configuration options - Fix README referencing non-existent files - Update documentation with accurate file structure and API docs
5.1 KiB
5.1 KiB
Installation Guide
This guide will help you install and configure the CargDev-Cyberpunk.nvim color scheme.
Prerequisites
- Neovim 0.8.0 or higher
- A plugin manager (Lazy.nvim, Packer, vim-plug, etc.)
termguicolorssupport (automatically enabled by the plugin)
Quick Installation
Using Lazy.nvim (Recommended)
Add this to your Neovim configuration:
-- In your plugins.lua or init.lua
{
"yourusername/cargdev-cyberpunk.nvim",
lazy = false, -- Load during startup
priority = 1000, -- Load before other plugins
config = function()
require("cargdev-cyberpunk").setup()
end,
}
Using Packer
use {
"yourusername/cargdev-cyberpunk.nvim",
config = function()
require("cargdev-cyberpunk").setup()
end
}
Using vim-plug
" In your .vimrc or init.vim
Plug 'yourusername/cargdev-cyberpunk.nvim'
Then in your Neovim Lua configuration:
require("cargdev-cyberpunk").setup()
Manual Installation
- Clone the repository:
git clone https://github.com/yourusername/cargdev-cyberpunk.nvim \
~/.local/share/nvim/site/pack/plugins/start/cargdev-cyberpunk.nvim
- Add to your Neovim configuration:
require("cargdev-cyberpunk").setup()
Using Colorscheme Command
After installation, you can also load the colorscheme with the standard command:
:colorscheme cargdev-cyberpunk
This is useful if you want to switch colorschemes dynamically.
Configuration
Basic Configuration
require("cargdev-cyberpunk").setup()
Advanced Configuration
require("cargdev-cyberpunk").setup({
-- Enable transparent background (useful for terminal transparency)
transparent = false,
-- Typography styles
italic_comments = true, -- Italicize comments
bold_keywords = true, -- Bold keywords (if, for, function, etc.)
bold_functions = true, -- Bold function names
bold_types = true, -- Bold type names
-- Terminal integration
terminal_colors = true, -- Set colors for :terminal
-- Custom color overrides
colors = {
bg = {
primary = "#000000", -- Pure black background
},
syntax = {
keyword = "#FF00FF", -- Custom keyword color
},
},
})
Transparent Background
If you use a terminal with transparency, enable the transparent option:
require("cargdev-cyberpunk").setup({
transparent = true,
})
Customizing Colors
Override any color in the palette:
require("cargdev-cyberpunk").setup({
colors = {
-- Background colors
bg = {
primary = "#1a1a2e",
secondary = "#16213e",
},
-- Foreground colors
fg = {
primary = "#ffffff",
accent = "#00ffff",
},
-- Syntax colors
syntax = {
keyword = "#ff6b6b",
["function"] = "#4ecdc4",
string = "#ffe66d",
},
-- Diagnostic colors
special = {
error = "#ff4757",
warning = "#ffa502",
},
},
})
Verification
To verify the installation:
- Open Neovim
- Check that colors are applied:
:hi Normal - Open a TypeScript file (like
examples/sample.ts) - Verify syntax highlighting is working
Run Tests
You can run the test suite to verify everything works:
nvim --headless -c "lua dofile('test/test_colors.lua')"
Or from within Neovim:
:lua dofile('test/test_colors.lua')
Troubleshooting
Colors not appearing correctly
- Ensure
termguicolorsis supported by your terminal - Check that the plugin is loaded:
:lua print(vim.inspect(package.loaded['cargdev-cyberpunk'])) - Try reloading:
:lua require('cargdev-cyberpunk').load()
Plugin not found
- Verify the plugin is installed in the correct directory
- Run
:checkhealthto diagnose issues - Restart Neovim after installation
Treesitter highlights not working
- Ensure Treesitter is installed:
:TSInstallInfo - Install parsers:
:TSInstall typescript tsx - Restart Neovim
LSP semantic tokens not working
- Ensure your LSP supports semantic tokens
- Check LSP status:
:LspInfo - Verify LSP is attached:
:lua print(vim.inspect(vim.lsp.get_active_clients()))
Terminal colors look wrong
- Verify
terminal_colorsis enabled in config - Open a new terminal buffer:
:terminal - Check terminal colors are set:
:lua print(vim.g.terminal_color_0)
Updating
With Lazy.nvim
:Lazy update cargdev-cyberpunk.nvim
With Packer
:PackerUpdate cargdev-cyberpunk.nvim
Manual
cd ~/.local/share/nvim/site/pack/plugins/start/cargdev-cyberpunk.nvim
git pull
Uninstallation
To remove the color scheme:
- Remove the plugin from your plugin manager configuration
- Remove any setup calls from your Neovim config
- Run your plugin manager's clean/sync command
- Restart Neovim
Support
If you encounter issues:
- Check the Issues page
- Create a new issue with:
- Your Neovim version (
:version) - Plugin manager and configuration
- Error messages
- Steps to reproduce
- Your Neovim version (
Contributing
See CONTRIBUTING.md for contribution guidelines.