blackbeard.nvim is a modern, customizable Neovim color scheme designed for productivity. Heavily inspired by TokyoNight, Kanagawa, Cyberdream, and Gruvbox. blackbeard-nvim is in it's early life. Palette and finetuning will come. User feedback is appreciated.
Watch the blackbeard-nvim on YouTube
- Dark and Light themes inspired by popular colorschemes like Gruvbox, Kanagawa, TokyoNight, and Cyberdream
- Integration with popular plugins such as Telescope, LSP, and more.
Hey everyone! I’ve been working on my dotfiles and recently branched off my blackbeard-nvim
plugin to add some cool features. It’s a simple Neovim plugin for toggling between dark and light themes, and it’s super easy to install using Lazy.nvim (note: this doesn’t work with Packer). Follow the steps below to get started! 🚀
-
Visit the GitHub Repository
Head over to theblackbeard-nvim
repository:
https://github.com/cvusmo/blackbeard-nvim -
Add the Plugin to Your Neovim Config
Open your Neovim configuration directory (usually~/.config/nvim/
). If you don’t already have aplugins
directory for Lazy.nvim, create one:
mkdir -p ~/.config/nvim/lua/plugins
3.Create or Edit the Plugin File
Create (or edit) a file named blackbeard.lua in the ~/.config/nvim/lua/plugins/ directory:
bash
touch ~/.config/nvim/lua/plugins/blackbeard.lua
- Add the Plugin Configuration Copy the following Lua code into ~/.config/nvim/lua/plugins/blackbeard.lua. This sets up the plugin with the default dark theme and adds a keybinding to toggle between dark and light themes:
-- ~/.config/nvim/lua/plugins/blackbeard.lua
return {
"cvusmo/blackbeard-nvim",
config = function()
require("blackbeard").setup({
theme = "dark", -- Default theme: "dark" or "light"
})
-- Function to toggle between dark and light themes
local function toggle_theme()
local current_theme = require("blackbeard").config.theme
local new_theme = current_theme == "dark" and "light" or "dark"
vim.cmd("BlackbeardTheme " .. new_theme)
end
-- Keybinding to toggle the theme
vim.keymap.set("n", "<leader>tt", toggle_theme, { desc = "Toggle Blackbeard theme (dark/light)" })
end,
}
- Sync Plugins with Lazy.nvim Open Neovim and run the following command to install the plugin:
:Lazy sync
-
This will download and install blackbeard-nvim from the master branch. Test the Plugin
Restart Neovim Press tt (e.g., if your leader key is the default , this would be \tt) to toggle between the dark and light themes.
Or enter command :BlackbeardTheme dark OR :BlackbeardTheme light You should see your Neovim colorscheme switch between the two themes!
Thank you to all who have created colorschmes for neovim. These four have been some of my favorites to use and their code was instrumental in setting up my own colorscheme. Thank you again!
- I stream M-W-F-Sat on twitch from 07:00AM EST to 01:00 PM EST. Come hang out in chat, and let me know what you're working on!
- youtube New series coming in May 2025 - The Rust Book. We're going to go through the entire Rust book and make a tutorial you can follow along.
- x Follow on x for more of day to day memes, random thoughts, and spicy fresh hot takes.
-Discord Join the wormhole and be part of our growing community! Games, programming, share projects, and learn about the lustre game engine!