Go to file
2024-08-15 13:26:05 -03:00
colors feat: MVP 2024-01-08 00:28:10 -03:00
docs docs: add original Hyper example 2024-03-04 16:29:04 -03:00
lua/hyper feat: add trouble plugin related highlight groups 2024-08-15 13:26:05 -03:00
.luacheckrc feat: create .luacheckrc 2024-02-25 16:54:45 -03:00
LICENSE docs: create LICENSE 2024-01-08 01:00:50 -03:00
README.md docs: add transparent background note in README 2024-08-14 12:35:06 -03:00
stylua.toml feat: create `stylua.toml 2024-02-25 16:54:54 -03:00

hyper.nvim

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

Hyper.nvim example

This theme is inspired by the high contrast and saturated colors of the original Hyper terminal Hyper terminal

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.