Home

Awesome

hyper.nvim

A Lua port of the Hyper.vim theme for Neovim with a few opinionated changes.

Hyper.nvim example

<!-- markdownlint-disable MD013 MD033 --> <h4> <details> <summary>This theme is inspired by the high contrast and saturated colors of the original <a href='https://hyper.is'>Hyper terminal</a></summary> <img alt="Hyper terminal" src="./docs/hyper-terminal.png" align="center" /> </details> </h4>

Installation and usage

Install via your favorite plugin manager, for example lazy:

-- init.lua or plugins/hyper.lua
  'paulo-granthon/hyper.nvim',

Or packer:

-- init.lua
use('paulo-granthon/hyper.nvim')

Enable hyper.nvim

Make sure to call load at some point. If you use Lazy, you can do it by declaring the plugin dependency like this:

-- init.lua or plugins/hyper.lua
  {
    'paulo-granthon/hyper.nvim',
    config = function()
      require('hyper').load()
    end
  }

Or by including the following line in your init.lua:

-- init.lua
require('hyper').load()

Customization

Currently, customization is still a work in progress.

todo!()

However, you can overwrite any changes that Hyper.nvim makes after calling the load function.

Personaly, I think the theme looks the best while having a transparent background instead of the theme's pitch black one, so I use the following settings to achieve that:

local no_bg = { bg = 'none' }

vim.api.nvim_set_hl(0, 'Normal', no_bg)
vim.api.nvim_set_hl(0, 'NormalFloat', no_bg)
vim.api.nvim_set_hl(0, 'EndOfBuffer', no_bg)

vim.api.nvim_set_hl(0, 'TabLineFill', no_bg)
vim.api.nvim_set_hl(0, 'TabLine', no_bg)
vim.api.nvim_set_hl(0, 'TabLineSel', no_bg)

vim.api.nvim_set_hl(0, 'SpecialKey', no_bg)
vim.api.nvim_set_hl(0, 'NonText', no_bg)

vim.api.nvim_set_hl(0, 'LineNrAbove', line_nr_colors)
vim.api.nvim_set_hl(0, 'LineNr', { fg = 'white', bg = 'none' })
vim.api.nvim_set_hl(0, 'LineNrBelow', line_nr_colors)

vim.api.nvim_set_hl(0, 'SignColumn', no_bg)

Coupled with Picom's blur-background options, it looks like this:

Hyper.nvim example transparent

You can see this configuration in my neovim dotfiles.

License

This project is licensed under the MIT License.