Skip to content

Commit

Permalink
feat!: new commands and extras
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Oct 17, 2024
1 parent ada0798 commit 6d01a51
Show file tree
Hide file tree
Showing 89 changed files with 1,119 additions and 146 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ return {
- The colorscheme enables users to be able to [apply styles](https://github.com/olimorris/onedarkpro.nvim#configuring-styles) to match enable a closer match to Visual Studio Code, whilst still enabling the user to apply customisations:

```lua
local config = require("onedarkpro.config").config
local config = require("onedarkpro.config")

return {
["@method.call.typescript"] = { fg = theme.palette.blue, style = config.styles.methods },
Expand Down Expand Up @@ -139,7 +139,7 @@ TelescopeSelection = {
- To incorporate styles from a user's config:

```lua
local config = require("onedarkpro.config").config
local config = require("onedarkpro.config")

return {
AerialClass = {
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PLENARY_DIR = misc/plenary
PLENARY_URL = https://github.com/nvim-lua/plenary.nvim
NV_VERSION := $(shell nvim --version | head -1 | grep -o '[0-9]\.[0-9]')

all: format test docs
all: format test docs extra

docs: $(PANVIMDOC_DIR)
@cd $(PANVIMDOC_DIR) && \
Expand Down Expand Up @@ -41,6 +41,9 @@ test: $(PLENARY_DIR)
# nvim --headless -u tests/semantic_token_spec.vim +SemanticTokenSpec
# endif

extra:
nvim --headless +"lua require('onedarkpro.extra').setup()" +qa

$(PLENARY_DIR):
git clone --depth=1 --branch v0.1.3 $(PLENARY_URL) $(PLENARY_DIR)
@rm -rf $(PLENARY_DIR)/.git
22 changes: 7 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,9 @@ colorscheme onedark

The colorscheme comes with some useful commands:

- `:OnedarkproCache` force generate new cache files for the themes (you won't often need this)
- `:OnedarkproClean` removes existing cache files for the themes
- `:OnedarkproColors` output all of the current themes colors to a scratch buffer

The theme comes with the ability to export colors to _Alacritty_, _Kitty_, _Foot_, _Wezterm_, _Rio_, _Windows Terminal_ and _Zellij_ using the following commands:

- `:OnedarkproExportToAlacritty`
- `:OnedarkproExportToFoot`
- `:OnedarkproExportToKitty`
- `:OnedarkproExportToWezterm`
- `:OnedarkproExportToWindowsTerminal`
- `:OnedarkproExportToRio`
- `:OnedarkproExportToZellij`

The templates for these themes can be found in the [extra](https://github.com/olimorris/onedarkpro.nvim/tree/main/lua/onedarkpro/extra) folder.
- `:OneDarkProCache` force generate new cache files for the themes (you won't often need this)
- `:OneDarkProClean` removes existing cache files for the themes
- `:OneDarkProColors` output all of the current themes colors to a scratch buffer

## :wrench: Configuration

Expand Down Expand Up @@ -745,6 +733,10 @@ The theme supports the following plugins:

## :gift: Extras

**Color Configs**

The theme comes with the colors for Alacritty, Kitty, Foot, Wezterm, Rio, Windows Terminal and Zellij and these can be found in the [extras](https://github.com/olimorris/onedarkpro.nvim/tree/main/extras) folder. To use them, refer to their respective documentation.

**Lualine**

The theme has Lualine support out of the box for all of its themes. This can be found in the [Lualine folder](https://github.com/olimorris/onedarkpro.nvim/tree/main/lua/lualine/themes).
Expand Down
32 changes: 12 additions & 20 deletions doc/onedarkpro.nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,9 @@ COMMANDS *onedarkpro.nvim-commands*
The colorscheme comes with some useful commands:


- `:OnedarkproCache` force generate new cache files for the themes (you won’t often need this)
- `:OnedarkproClean` removes existing cache files for the themes
- `:OnedarkproColors` output all of the current themes colors to a scratch buffer

The theme comes with the ability to export colors to _Alacritty_, _Kitty_,
_Foot_, _Wezterm_, _Rio_, _Windows Terminal_ and _Zellij_ using the following
commands:


- `:OnedarkproExportToAlacritty`
- `:OnedarkproExportToFoot`
- `:OnedarkproExportToKitty`
- `:OnedarkproExportToWezterm`
- `:OnedarkproExportToWindowsTerminal`
- `:OnedarkproExportToRio`
- `:OnedarkproExportToZellij`

The templates for these themes can be found in the extra
<https://github.com/olimorris/onedarkpro.nvim/tree/main/lua/onedarkpro/extra>
folder.
- `:OneDarkProCache` force generate new cache files for the themes (you won’t often need this)
- `:OneDarkProClean` removes existing cache files for the themes
- `:OneDarkProColors` output all of the current themes colors to a scratch buffer


CONFIGURATION *onedarkpro.nvim-configuration*
Expand Down Expand Up @@ -173,6 +156,7 @@ Click to see the default configuration ~
nvim_ts_rainbow = true,
op_nvim = true,
packer = true,
persisted = true,
polygot = true,
rainbow_delimiters = true,
startify = true,
Expand Down Expand Up @@ -806,6 +790,7 @@ The theme supports the following plugins:
- nvim-ts-rainbow2 <https://github.com/HiPhish/nvim-ts-rainbow2> (`nvim_ts_rainbow2`)
- op.nvim <https://github.com/mrjones2014/op.nvim> (`op_nvim`)
- packer.nvim <https://github.com/wbthomason/packer.nvim> (`packer`)
- persisted.nvim <https://github.com/olimorris/persisted.nvim> (`persisted`)
- polygot <https://github.com/sheerun/vim-polyglot> (`polygot`)
- startify <https://github.com/mhinz/vim-startify> (`startify`)
- telescope.nvim <https://github.com/nvim-telescope/telescope.nvim> (`telescope`)
Expand All @@ -819,6 +804,13 @@ The theme supports the following plugins:

EXTRAS *onedarkpro.nvim-extras*

**Color Configs**

The theme comes with the colors for Alacritty, Kitty, Foot, Wezterm, Rio,
Windows Terminal and Zellij and these can be found in the extras
<https://github.com/olimorris/onedarkpro.nvim/tree/main/extras> folder. To use
them, refer to their respective documentation.

**Lualine**

The theme has Lualine support out of the box for all of its themes. This can be
Expand Down
32 changes: 32 additions & 0 deletions extras/alacritty/onedark.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim
[colors.primary]
background = "#282c34"
foreground = "#abb2bf"

[colors.normal]
black = "#282c34"
red = "#e06c75"
green = "#98c379"
yellow = "#e5c07b"
blue = "#61afef"
magenta = "#c678dd"
cyan = "#56b6c2"
white = "#abb2bf"

[colors.bright]
black = "#3e4451"
red = "#e9969d"
green = "#b3d39c"
yellow = "#edd4a6"
blue = "#8fc6f4"
magenta = "#d7a1e7"
cyan = "#7bc6d0"
white = "#c8cdd5"

[colors.cursor]
text = "CellBackground"
cursor = "CellForeground" # syntax-cursor-color

[colors.selection]
text = "CellForeground"
background = "#5c6370"
32 changes: 32 additions & 0 deletions extras/alacritty/onedark_dark.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim
[colors.primary]
background = "#000000"
foreground = "#abb2bf"

[colors.normal]
black = "#000000"
red = "#ef596f"
green = "#89ca78"
yellow = "#e5c07b"
blue = "#61afef"
magenta = "#d55fde"
cyan = "#2bbac5"
white = "#abb2bf"

[colors.bright]
black = "#1a1a1a"
red = "#f38897"
green = "#a9d89d"
yellow = "#edd4a6"
blue = "#8fc6f4"
magenta = "#e089e7"
cyan = "#4bced8"
white = "#c8cdd5"

[colors.cursor]
text = "CellBackground"
cursor = "CellForeground" # syntax-cursor-color

[colors.selection]
text = "CellForeground"
background = "#434852"
32 changes: 32 additions & 0 deletions extras/alacritty/onedark_vivid.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim
[colors.primary]
background = "#282c34"
foreground = "#abb2bf"

[colors.normal]
black = "#282c34"
red = "#ef596f"
green = "#89ca78"
yellow = "#e5c07b"
blue = "#61afef"
magenta = "#d55fde"
cyan = "#2bbac5"
white = "#abb2bf"

[colors.bright]
black = "#3e4451"
red = "#f38897"
green = "#a9d89d"
yellow = "#edd4a6"
blue = "#8fc6f4"
magenta = "#e089e7"
cyan = "#4bced8"
white = "#c8cdd5"

[colors.cursor]
text = "CellBackground"
cursor = "CellForeground" # syntax-cursor-color

[colors.selection]
text = "CellForeground"
background = "#5c6370"
32 changes: 32 additions & 0 deletions extras/alacritty/onelight.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim
[colors.primary]
background = "#fafafa"
foreground = "#6a6a6a"

[colors.normal]
black = "#6a6a6a"
red = "#e05661"
green = "#1da912"
yellow = "#eea825"
blue = "#118dc3"
magenta = "#9a77cf"
cyan = "#56b6c2"
white = "#fafafa"

[colors.bright]
black = "#848484"
red = "#e88189"
green = "#25d717"
yellow = "#f2bb54"
blue = "#1caceb"
magenta = "#b69ddc"
cyan = "#7bc6d0"
white = "#ffffff"

[colors.cursor]
text = "CellBackground"
cursor = "CellForeground" # syntax-cursor-color

[colors.selection]
text = "CellForeground"
background = "#bebebe"
19 changes: 19 additions & 0 deletions extras/foot/onedark.dosini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim
foreground=#abb2bf
background=#282c34
regular0=#282c34
regular1=#e06c75
regular2=#98c379
regular3=#e5c07b
regular4=#61afef
regular5=#c678dd
regular6=#56b6c2
regular7=#abb2bf
bright0=#3e4451
bright1=#e9969d
bright2=#b3d39c
bright3=#edd4a6
bright4=#8fc6f4
bright5=#d7a1e7
bright6=#7bc6d0
bright7=#c8cdd5
19 changes: 19 additions & 0 deletions extras/foot/onedark_dark.dosini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim
foreground=#abb2bf
background=#000000
regular0=#000000
regular1=#ef596f
regular2=#89ca78
regular3=#e5c07b
regular4=#61afef
regular5=#d55fde
regular6=#2bbac5
regular7=#abb2bf
bright0=#1a1a1a
bright1=#f38897
bright2=#a9d89d
bright3=#edd4a6
bright4=#8fc6f4
bright5=#e089e7
bright6=#4bced8
bright7=#c8cdd5
19 changes: 19 additions & 0 deletions extras/foot/onedark_vivid.dosini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim
foreground=#abb2bf
background=#282c34
regular0=#282c34
regular1=#ef596f
regular2=#89ca78
regular3=#e5c07b
regular4=#61afef
regular5=#d55fde
regular6=#2bbac5
regular7=#abb2bf
bright0=#3e4451
bright1=#f38897
bright2=#a9d89d
bright3=#edd4a6
bright4=#8fc6f4
bright5=#e089e7
bright6=#4bced8
bright7=#c8cdd5
19 changes: 19 additions & 0 deletions extras/foot/onelight.dosini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim
foreground=#6a6a6a
background=#fafafa
regular0=#6a6a6a
regular1=#e05661
regular2=#1da912
regular3=#eea825
regular4=#118dc3
regular5=#9a77cf
regular6=#56b6c2
regular7=#fafafa
bright0=#848484
bright1=#e88189
bright2=#25d717
bright3=#f2bb54
bright4=#1caceb
bright5=#b69ddc
bright6=#7bc6d0
bright7=#ffffff
35 changes: 35 additions & 0 deletions extras/kitty/onedark.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim

background #282c34
foreground #abb2bf
cursor none

color0 #282c34
color8 #5c6370

color1 #e06c75
color9 #e9969d

color2 #98c379
color10 #b3d39c

color3 #e5c07b
color11 #edd4a6

color4 #61afef
color12 #8fc6f4

color5 #c678dd
color13 #d7a1e7

color6 #56b6c2
color14 #7bc6d0

color7 #abb2bf
color15 #c8cdd5

# Tab bar
active_tab_foreground #d7a1e7
active_tab_background #282c34
inactive_tab_foreground #5c6370
inactive_tab_background #3e4451
Loading

0 comments on commit 6d01a51

Please sign in to comment.