{"id":13896068,"url":"https://github.com/nekonako/xresources-nvim","last_synced_at":"2025-07-17T12:30:39.299Z","repository":{"id":52441455,"uuid":"346198539","full_name":"nekonako/xresources-nvim","owner":"nekonako","description":"🎨 Neovim colorscheme based on your xresources color","archived":true,"fork":false,"pushed_at":"2021-11-23T12:47:00.000Z","size":1070,"stargazers_count":82,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-07T18:37:50.853Z","etag":null,"topics":["colorscheme","lua","neovim"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nekonako.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-10T01:46:36.000Z","updated_at":"2024-07-01T06:10:13.000Z","dependencies_parsed_at":"2022-08-18T08:03:30.119Z","dependency_job_id":null,"html_url":"https://github.com/nekonako/xresources-nvim","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekonako%2Fxresources-nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekonako%2Fxresources-nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekonako%2Fxresources-nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekonako%2Fxresources-nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nekonako","download_url":"https://codeload.github.com/nekonako/xresources-nvim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226260601,"owners_count":17596494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["colorscheme","lua","neovim"],"created_at":"2024-08-06T18:02:38.523Z","updated_at":"2024-11-25T01:31:01.885Z","avatar_url":"https://github.com/nekonako.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003eXresources-nvim\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cb\u003e\n* Neovim colorscheme based on your xresources color *\n\u003c/b\u003e\n\u003c/p\u003e\n\n\u003cbr/\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./shot.png\" width=\"90%\"/\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n#### Require\n- Neovim 0.5\n- xrdb\n\n#### Install\n**Vim Plug**\n```vim\nPlug 'nekonako/xresources-nvim'\n```\n\n#### Usage\n\n- lua\n\n`require('xresources')`\n\n- lua inside vimscript\n\n`lua require('xresources')`\n\n- vimscript\n\n`colorscheme xresources`\n\n#### Notes\nif you use light background, set neovim background to light.\n\n- lua\n\n`vim.o.background = 'light'`\n\n- lua inside vimscript\n\n`lua vim.o.background = 'light'`\n\n- vimscript\n\n`set background=light`\n\n#### Properties\n\n| **Properties** | **Xresources**           |\n| :----------: | :--------------------: |\n| fg           | foreground             |\n| bg           | background             |\n| black        | color0                 |\n| red          | color1                 |\n| green        | color2                 |\n| yellow       | color3                 |\n| blue         | color4                 |\n| purple       | color5                 |\n| cyan         | color6                 |\n| white        | color7                 |\n| light_black  | color8                 |\n| light_red    | color9                 |\n| light_green  | color10                |\n| light_yellow | color11                |\n| light_blue   | color12                |\n| light_purple | color13                |\n| light_cyan   | color14                |\n| light_white  | color15                |\n| grey         | background + 0xf0f10   |\n| grey1        | background + 0x363940  |\n| none         | NONE                   |\n\n#### Example using properties\n\nLet say i want using xresources to my [galaxyline](https://github.com/glepnir/galaxyline.nvim) \nconfiguration \n```lua\nlocal galaxyline = require('galaxyline')\nlocal color = require('xresources')\nlocal section = galaxyline.section\n\nsection.left[1] = {\n   FileName = {\n      provider = get_current_file_name,\n      condition = buffer_not_empty,\n      -- acessing properties --\n      highlight = {color.bg, color.purple},\n      separator = \" \",\n      -- acessing properties --\n      separator_highlight = {color.gray, color.gray}\n   }\n}\n```\n\n#### Tips\n- use [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) for better highlight\n\n#### Similiar project\n- [wal.vim](https://github.com/dylanaraps/wal.vim)\n\n#### My setup\n- my xresources color is originaly from [uwu.vim](https://github.com/Mangeshrex/uwu.vim)\n- my terminal is using alacritty\n- font is pragmataPro\n\n#### Thanks\n- [Glepnir](https://github.com/glepnir) \n- [Elianiva](https://github.com/elianiva)\n- [Dotfiles indonesia](https://t.me/dotfiles_id)\n- [Vim indonesia](https://t.me/VimID)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekonako%2Fxresources-nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnekonako%2Fxresources-nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekonako%2Fxresources-nvim/lists"}