NeoHellwal for Neovim
NeoHellwal is a Neovim colorscheme plugin that automatically fetches and applies colors generated by Hellwal, featuring plenty of configuration options and support for various plugins within the Neovim ecosystem.
Important
NeoHellwal is a Hellwal-based shameless prewrite of NeoPywal
If you find this project useful give a ⭐ to RedsXDDD since he has done all the hard work, and I'm just a thief. 😊
Hellwal's colors.vim template must be installed in ~/.config/hellwall/templates for palette generation.
- Highly configurable with ability to change color definitions and highlight groups.
- True color support for terminals.
- Support for dark and light themes.
- Importable and customizable color palette.
- Fail safe fallback theme if required palette files can't be loaded.
- Supports Hellwal (requires installing Hellwal's
colors.vimtemplate; see the palette guide). - Automatic reloading of the colorscheme when Hellwal generates a new theme.
- Support for LSP, treesitter and a bunch of plugins.
- Enhanced syntax highlighting for fileformats (without treesitter).
- Compiled user's configuration for fast startup times.
- Interactive mode for live config re-loading.
{
"bitterhalt/neohellwal.nvim",
name = "neohellwal",
lazy = false,
priority = 1000,
opts = {},
}use { "bitterhalt/neohellwal.nvim", as = "neohellwal" }now(function()
add({
source = "bitterhalt/neohellwal.nvim",
name = "neohellwal",
})
end)Plug "bitterhalt/neohellwal.nvim", { "as": "neohellwal" }To activate the theme, add the following to your Neovim config:
vim.cmd.colorscheme("neohellwal")Or call the colorscheme with vim script:
colorscheme neohellwalNote
Make sure to run :colorscheme neohellwal or vim.cmd.colorscheme("neohellwal"), otherwise the colorscheme won't be loaded.
Hellwal can generate a light palette with its --light option:
hellwal -i /path/to/your/image --lightThen load it the same way as any other Hellwal palette:
colorscheme neohellwalNeoHellwal uses Neovim's vim.o.background setting (see :h background) to choose the appropriate style, so keep it consistent with the palette Hellwal generated.
Customization options and explanations are available in the docs/ directory.
You can also look at the documentation within Neovim itself, by running commands such as:
:help neohellwalIf you just want some quick links to a certain documentation file, here they are:
- NeoHellwal's Configuration Options
- Enabling Fileformat Highlights
- List/Usage of Supported Plugins
- Palette Variants/Configuration
- Customizing Colors
- Customizing Highlight Groups
- Additional Utility Functions
NeoHellwal can pre-compute your configuration and store the results in a compiled lua file stored into the system's cache directory, which then gets loaded when the colorscheme is applied. This approach greatly improves performance and reduces the total execution time.
Note that you can always manually recompile NeoHellwal with the :NeoHellwalCompile command. But that shouldn't be needed since NeoHellwal is capable of automatically recompiling the colorscheme when any change is detected on the user configuration or when Hellwal generates a new theme.
NeoHellwal allows for an easy way to make changes to it's config and see the results live by exposing the command :NeoHellwalInteractive.
This command will attach an autocmd to the current buffer that executes on BufferWritePost. The autocmd will clear NeoHellwal's internal state and re-compute it's config from the newly saved file. Which in turn will update the colorscheme accordingly.
There are a few things to note:
- This requires executing
luafileon the current file. Any syntax errors will throw errors. - If you are using packer and have NeoHellwal's config in a
config = function() endblock, this will not work as packer would require to be re-compiled and the compiled file sourced.
- Pywal.nvim, the original project NeoHellwal was built upon, by AlphaTechnolog and RedsXDD, the original author of NeoPywal.
- Catppuccin (Inspiration of code base structure).
- Nightfox (For the interactive mode).
- Danihek for creating and maintaining Hellwal.