Skip to content

🎨 Neovim colorscheme based on your xresources color

License

Notifications You must be signed in to change notification settings

cshjsc/xresources-nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xresources-nvim

Neovim colorscheme based on your xresources color

Require

  • Neovim 0.5
  • xrdb

Install

Vim Plug

Plug 'nekonako/xresources-nvim'

Usage

lua require('xresources')

or

colorscheme xresources

Preview

'Preview'

Properties

Properties Xresources
fg foreground
bg background
black color0
red color1
green color2
yellow color3
blue color4
purple color5
cyan color6
white color7
light_black color8
light_red color9
light_green color10
light_yellow color11
light_blue color12
light_purple color13
light_cyan color14
light_white color15
grey background + 0xf0f10
grey1 background + 0x363940
none NONE

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

Thanks

About

🎨 Neovim colorscheme based on your xresources color

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 99.4%
  • Other 0.6%