Home

Awesome

<h2 align="center">Xresources-nvim</h2> <p align="center"> <b> * Neovim colorscheme based on your xresources color * </b> </p> <br/> <p align="center"> <img src="./shot.png" width="90%"/> </p> <br/>

Require

Install

Vim Plug

Plug 'nekonako/xresources-nvim'

Usage

require('xresources')

lua require('xresources')

colorscheme xresources

Notes

if you use light background, set neovim background to light.

vim.o.background = 'light'

lua vim.o.background = 'light'

set background=light

Properties

PropertiesXresources
fgforeground
bgbackground
blackcolor0
redcolor1
greencolor2
yellowcolor3
bluecolor4
purplecolor5
cyancolor6
whitecolor7
light_blackcolor8
light_redcolor9
light_greencolor10
light_yellowcolor11
light_bluecolor12
light_purplecolor13
light_cyancolor14
light_whitecolor15
greybackground + 0xf0f10
grey1background + 0x363940
noneNONE

Example using properties

Let say i want using xresources to my galaxyline configuration

local galaxyline = require('galaxyline')
local color = require('xresources')
local section = galaxyline.section

section.left[1] = {
   FileName = {
      provider = get_current_file_name,
      condition = buffer_not_empty,
      -- acessing properties --
      highlight = {color.bg, color.purple},
      separator = " ",
      -- acessing properties --
      separator_highlight = {color.gray, color.gray}
   }
}

Tips

Similiar project

My setup

Thanks