Skip to content

A fork of oneokai.nvim, converted to be closer to duskfox and gruvbox

License

Notifications You must be signed in to change notification settings

Nuclear-Squid/photon.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

photon.nvim

Photon.nvim (which has nothing to do with the archived photon.vim) is a fork of Oneokai.nvim, converted to be closer to Gruvbox and Duskfox, like a weird fusion of all of the things I love about those themes.

Since this is a fork, it should still have all the support for tree sitter and highlighting.

For latest TreeSitter syntax highlight, upgraded to Neovim 0.8.0 or later built with tree-sitter 0.20.3+

I spend way too much time trying to make my neovim environment as pretty as I can, which lead me to make a somewhat custom theme (since I didn’t find one that had everything I wanted). I forked oneokai since it was the closest to what I wanted, but sprinkled in what I really loved from Duskfox (mainly it’s background and text colors) and Gruvbox (for the choice of colors of some elements, which I was used to).

Here’s two somewhat interesting things I love about this theme and haven’t seen many others do :

  1. using gradients (like let mut, use namespace::type or for ... in self.item.method() in rust, see screenshot), which make the theme really colorful and expressive without becomming an eye sore (cough cough dracula…), and is just neet !
  2. cleanly separate loops (colored purple) and conditionals (colored orange) from other keywords (colored red), which (to me) helps understand the general code structure just by looking at the colors. Photon was made to present as much semantic information through the colors as possible (while staying pretty).

themes

Right now there is just one theme, but I’ll maybe make a super dark and light one in the future.

install

Install via package manager

" Using Vim-Plug
Plug 'Nuclear-Squid/photon.nvim'

or

-- Using Packer
use 'Nuclear-Squid/photon.nvim'

setup and config

enable the theme

" Vim
colorscheme photon
-- Lua
require('photon').load()

styles

You can override the default values like so :

-- Lua
require('photon').setup {
    code_style = {
        strings = "none",
    },

    colors = {
        bg = "#222222",
    },

    highlights = {
        ["@include"] = { fmt = "bold" },
    } ,
}
require('photon').load()

lualine

Photon has lualine support

require('lualine').setup {
  options = {
    theme = 'photon',
    -- ... your lualine config
  }
}

About

A fork of oneokai.nvim, converted to be closer to duskfox and gruvbox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 96.2%
  • Rust 3.8%