From e351ef8354de9d4c5461b12291d1945a787dc83c Mon Sep 17 00:00:00 2001 From: sorachii Date: Wed, 4 Aug 2021 21:59:09 +0200 Subject: [PATCH 1/3] Added Packer as plugin manager. I think it is good to also have neovim plugin manager representation. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 9be3116..71e6edc 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,11 @@ Use your favorite plugin manager. 1. Add `Plug 'junegunn/seoul256.vim'` to .vimrc 2. Run `:PlugInstall` +- [packer.nvim](https://github.com/wbthomason/packer.nvim) + 1. Add `use 'junegunn/seoul256.vim'` to ~/.config/nvim/init.lua + 2. Run `:PackerInstall` + + Color schemes ------------- From caa868ddd3b864f409f8af5e94fef860839c3432 Mon Sep 17 00:00:00 2001 From: sorachii Date: Wed, 4 Aug 2021 22:18:58 +0200 Subject: [PATCH 2/3] Added lua alternatives to configuring the plugin. --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index 71e6edc..29dd705 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,15 @@ set background=dark set background=light ``` +```lua +-- Light color scheme +vim.cmd[[colorscheme seoul256]] + +-- Switch +vim.g.background = dark +vim.g.background = light +``` + Change background color ----------------------- @@ -67,6 +76,20 @@ let g:seoul256_background = 256 colo seoul256 ``` +```lua +-- seoul256 (dark): +-- Range: 233 (darkest) ~ 239 (lightest) +-- Default: 237 +vim.g.seoul256_background = 236 +vim.cmd[[colorscheme seoul256]] + +-- seoul256 (light): +-- Range: 252 (darkest) ~ 256 (lightest) +-- Default: 253 +vim.g.seoul256_background = 256 +vim.cmd[[colorscheme seoul256]] +``` + If `g:seoul256_background` is set, seoul256 will choose the right version based on the value and `set background=dark/light` will not switch versions. @@ -82,6 +105,13 @@ colo seoul256 colo seoul256-light ``` +```lua +vim.g.seoul256_background = 233 +vim.g.seoul256_light_background = 256 +vim.cmd[[colorscheme seoul256]] +vim.cmd[[colorscheme seoul256-light]] +``` + Alternate 256-xterm -> sRGB mapping ------------------------------------- @@ -102,6 +132,10 @@ colors of the terminal and GUI versions are uniformly colored on Linux. let g:seoul256_srgb = 1 ``` +```lua +vim.g.seoul256_srgb = 1 +``` + Current background color ------------------------ From 7df4935b4c5e499d88eaf0f72807586d4df6e775 Mon Sep 17 00:00:00 2001 From: Koczka Bence <48826429+sorachii@users.noreply.github.com> Date: Wed, 4 Aug 2021 22:35:48 +0200 Subject: [PATCH 3/3] Minor fixes in README.md. --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 29dd705..2bf7bf5 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ Use your favorite plugin manager. Color schemes ------------- +#### VimL ```vim " Unified color scheme (default: dark) colo seoul256 @@ -48,10 +49,14 @@ set background=dark set background=light ``` +#### Lua ```lua --- Light color scheme +-- Unified color scheme (default: dark) vim.cmd[[colorscheme seoul256]] +-- Light color scheme +vim.cmd[[colorscheme seoul256-light]] + -- Switch vim.g.background = dark vim.g.background = light @@ -62,6 +67,8 @@ Change background color ![seoul256-bg](https://raw.github.com/junegunn/i/master/seoul256-bg.png) + +#### VimL ```vim " seoul256 (dark): " Range: 233 (darkest) ~ 239 (lightest) @@ -76,6 +83,8 @@ let g:seoul256_background = 256 colo seoul256 ``` + +#### Lua ```lua -- seoul256 (dark): -- Range: 233 (darkest) ~ 239 (lightest) @@ -97,6 +106,7 @@ If you'd like to switch versions with custom background colors, set `g:seoul256_background` to be a dark value, and additionally define `g:seoul256_light_background` for seoul256-light. +#### VimL ```vim let g:seoul256_background = 233 let g:seoul256_light_background = 256 @@ -105,6 +115,7 @@ colo seoul256 colo seoul256-light ``` +#### Lua ```lua vim.g.seoul256_background = 233 vim.g.seoul256_light_background = 256 @@ -128,10 +139,12 @@ If `let g:seoul256_srgb` is set to 1, the color mapping is altered to suit the way urxvt (and various other terminals) renders them. That way, the colors of the terminal and GUI versions are uniformly colored on Linux. +#### VimL ```vim let g:seoul256_srgb = 1 ``` +#### Lua ```lua vim.g.seoul256_srgb = 1 ```