Git Product home page Git Product logo

aurora's Introduction

Aurora a vivid night theme for vim/neovim and terminal

aurora2

Transparent mode: aurora

A vivid 24-bit dark theme for vim/neovim. Highly configurable and cook your own color highlight. Good supports for popular languages and vim plugins, handcrafted support for LSP, Treesitter.

Languages explicitly styled

  • All Neovim Treesitter highlighted-languages
  • For VIM, all languages that have a syntax file e.g.
    • C++
    • python
    • js/ts
    • json
    • markdown
    • yaml
    • css
    • sql
    • golang
    • html

Plugins explicitly styled

  • coc
  • ale
  • vim-clap
  • lsp/nvim-lsp
  • signify
  • gitgutter
  • nvim lsp diagnostics.
  • git-fugitive
  • fzf
  • telescope
  • blankline
  • gitsigns
  • treesitter

You can change/add syntax highlight. Feel free to fork or make a PR.

To install:

call dein#add('ray-x/aurora')  " for dein user

Plug 'ray-x/aurora'      " for Plug user

set termguicolors            " 24 bit color
let g:aurora_italic = 1     " italic
let g:aurora_transparent = 1     " transparent
let g:aurora_bold = 1     " bold
let g:aurora_darker = 1     " darker background

colorscheme aurora

" customize your own highlight
hi Normal guibg=NONE ctermbg=NONE "remove background
hi String guibg=#339922 ctermbg=NONE "remove background

" customize your own highlight with lua
lua <<EOF
  vim.api.nvim_set_hl(0, '@string', {fg='#59E343'})
  vim.api.nvim_set_hl(0, '@field', {fg='#f93393'})
  vim.api.nvim_set_hl(0, '@number', {fg='#e933e3'})
EOF

lua setup

A lua version is provided, if the neovim version is higher than 0.6.x, lua script will be loaded automatically. The lua version will be much faster as it using native API vim.api.nvim_set_hl() My tests shows loading the theme 5000 times took 3s, which means 0.6ms loading time. The vim version normally 15ms startup time.

#### Howto update the theme:

This project is based on [Estilo](http://estilo.jacoborus.codes/).
Estilo allow you to define color palettes and syntax highlight and then generate .vim file for you.

To update the color, edit the yml file, and run:

```bash
npm install -g estilo
yarn render
copy colors/aurora.vim ~/.vim/plugged/aurora/colors/aurora.vim

Generate lua script:

cat ../colors/aurora.vim  | awk -f aurora.awk > aurora.lua

And manually update the aurora.vim to call aurora.lua (estilo will not do it for you).

color palettes file is in aurora/estilo/palettes/ folder and syntax file in aurora/estilo/syntax/ folder.

fast startup time

On my intel 11 i7 xps, loading time is 2ms on average.

Show case

  • Go with treesitter go treesitter

  • color palettes, more than 100 pre-defined color: vim color palettes

  • syntax color highlight: aurora3

  • sidebar

image

  • color curl underline, better search highlight(only highlight bg and keep current fg color of the search text) on the right side:

vim undercurl and search hl for aurora

aurora's People

Contributors

j-mnr avatar ray-x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aurora's Issues

Cannot allocate color 0

When I try to start Vim with aurora colorscheme I see these errors:

Error detected while processing /home/user/.vim/bundle/coc.nvim/plugin/coc.vim[455]..function <SNR>27_Hi[51]..<SNR>27_AddAnsiGroups:
line   18:
E254: Cannot allocate color 0
E254: Cannot allocate color 0
Error detected while processing /home/user/.vim/bundle/glyph-palette.vim/plugin/glyph_palette.vim[7]..function glyph_palette#defaults#highlight[1]..<SNR>39_highlight:
line    3:
E254: Cannot allocate color 0
Press ENTER or type command to continue

After pressing ENTER several more lines with error messages appear:

Error detected while processing VimEnter Autocommands for "*"..function <SNR>33_on_vimenter[5]..startify#insane_in_the_membrane[121]..FileType Autocommands for "startify"..function glyph_palette#apply[16]..<SNR>9
2_apply[8]..<lambda>14:
line    1:
E28: No such highlight group name: GlyphPalette9
Press ENTER or type command to continue

Airline/Lightline compatibility

Hi!
Love this scheme, I've been trying quite a lot and I'm definetly gonna use this one!

It just have a downside, it doesn't have lightline or airline compatibility, it is possible to add it?

Many thanks & congrats!

italic not working anymore

When i first installed , i used to get italicised comment. But then suddenly italic stopped working. I am not sure whether it is clashing with other plugins or not but my aurora configs are placed at the bottom of init.lua, after all the configurations of other plugins.

Interesting to note that i have tried other plugins like onedark and tokyodark and in both italic is working.
This is the bottom section of my init.lua where i put the colorscheme configurations.

------------------ Colorschemes -----------------------------

vim.cmd [[set bg=dark]]

--onedark
--[[ cmd 'packadd onedark.nvim'
local od = require('onedark')
od.setup {
  -- style = 'dark'
  style = 'darker',
  -- style = 'cool'
  -- style = 'deep'
  -- style = 'warm'
  -- style = 'warmer'
  transparent = true,
}
od.load() ]]

--tokyodark
--[[ cmd 'packadd tokyodark.nvim'
cmd 'colorscheme tokyodark' ]]

--aurora
-- aurora doesn't allow scope highlight from ts-refactor
cmd 'packadd aurora'
vim.g.aurora_italic = 1
cmd 'colorscheme aurora'

-- cmd 'colorscheme base16-atelier-savanna'
-- cmd 'colorscheme base16-atelier-plateau'
-- cmd 'colorscheme base16-3024'
-- cmd 'colorscheme base16-woodland'


-- ts-rainbow should be loaded after colorscheme
cmd 'packadd nvim-ts-rainbow'
-- cmd 'if &diff then highlight! link DiffText MatchParent end'

screenshot - > https://imgur.com/a/GnCn9Ew

Error processing `aurora.vim`

I just launched my neovim and this error poped up:

Error detected while processing /Users/johernandez/.vim/plugged/aurora/colors/aurora.vim:
line   50:
W18: Invalid character in group name
W18: Invalid character in group name
...

YAML syntax highlighting

Hi guys,

Firstly, love the work! the colorscheme is just wonderful.

To my question, I want to tweak the color of the YAML file, to be specific: the key inside the file, instead of white, I want a different color. How would I change that?

I'm using Packer btw.

I tried to go to .local/share/nvim/site/pack/packer/start/aurora/estilos/syntax/yaml.yml, tweaked all values, :PackerSync, :colorscheme aurora. The whole lot, but the file still stays the same. Am I missing anything. Would appreciate any guidance :)

Report error message when launched

It will report:

Error detected while processing ColorScheme Autocommands for "*":
E121: Undefined variable: g:colors_name
E116: Invalid arguments for function CocHelperCallFn_m1_v0_13_0

Broken colors on any terminal

Hi! Thanks for the work on this theme which looks great!

I installed it on neovim 0.9.5 with wezterm, default mac terminal, iTerm2 and all look like this. Any idea what I am missing?

CleanShot 2024-02-08 at 16 49 24@2x

You can also see my init.vim above.

That looks very different from the screenshots in the readme. Am I missing something?

Go 1.21 is installed and also in the $PATH and works well on any other IDE (VSCode for ex. where gopls work just fine)

Any idea what am I missing here?

Add highlight for WinSeparator

Nvim is deprecating VertSplit and moving to WinSeparator for borders in 0.10. By default, WinSeparator links to normal which does not look great for most colorschemes.

Missing LICENSE file

Hi, I've noticed there's no explicit license file in this repo (I saw it's licensed for MIT in the headers of your files). I would recommend adding one whenever possible. You can find a template here for you to use.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.