Skip to content

Latest commit

 

History

History
95 lines (66 loc) · 2.56 KB

README.md

File metadata and controls

95 lines (66 loc) · 2.56 KB

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.