Skip to content

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

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.

Features

Installation

lazy.nvim

{
    "bitterhalt/neohellwal.nvim",
    name = "neohellwal",
    lazy = false,
    priority = 1000,
    opts = {},
}

packer.nvim

use { "bitterhalt/neohellwal.nvim", as = "neohellwal" }

mini.deps

now(function()
    add({
        source = "bitterhalt/neohellwal.nvim",
        name = "neohellwal",
    })
end)

vim-plug

Plug "bitterhalt/neohellwal.nvim", { "as": "neohellwal" }

Usage

To activate the theme, add the following to your Neovim config:

    vim.cmd.colorscheme("neohellwal")

Or call the colorscheme with vim script:

colorscheme neohellwal

Note

Make sure to run :colorscheme neohellwal or vim.cmd.colorscheme("neohellwal"), otherwise the colorscheme won't be loaded.

Light Themes

Hellwal can generate a light palette with its --light option:

hellwal -i /path/to/your/image --light

Then load it the same way as any other Hellwal palette:

colorscheme neohellwal

NeoHellwal uses Neovim's vim.o.background setting (see :h background) to choose the appropriate style, so keep it consistent with the palette Hellwal generated.

Documentation

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 neohellwal

If you just want some quick links to a certain documentation file, here they are:

Compilation

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.

Interactive Mode

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 luafile on the current file. Any syntax errors will throw errors.
  • If you are using packer and have NeoHellwal's config in a config = function() end block, this will not work as packer would require to be re-compiled and the compiled file sourced.

Acknowledgments

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages