-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from barrientosvctor/develop
New features and fixes
- Loading branch information
Showing
24 changed files
with
1,243 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.luacheckcache | ||
test/plenary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# 👥 Contributing | ||
|
||
If you're reading this file. Surely you want to contribute to the development of | ||
this colorscheme, so thank you so much for considering it! | ||
|
||
Any issue or pull request is welcome. In this section, I will guide you to make | ||
your first contribution. | ||
|
||
- Before these instructions, it's recommended to before create an issue about | ||
your change to talk about it. | ||
|
||
- All branches must be based from `develop` branch. So, make sure to include | ||
the `develop` branch when forking this repository. Then, you need to | ||
create a new branch based on this one. | ||
|
||
```shell | ||
$ git switch develop | ||
$ git checkout -b branch-name | ||
``` | ||
|
||
- Make sure to pull the latest commits from `develop` branch to your branch | ||
before making a commit. | ||
|
||
- All pull requests must go from your branch to `develop` branch. | ||
|
||
## Making a new abyss variant | ||
|
||
Make sure to follow these rulements if you want to contribute creating a new | ||
variant (palette) for abyss. | ||
|
||
Note: All files related to their new variant, must be named as the variant's | ||
name. | ||
|
||
- Create a new file on `colors/*.vim`. | ||
- Create a new file for Lualine, Vim-airline/Lightline themes of their variant. | ||
- Create a new file on `lua/abyss/palettes/*.lua` (The name of the palette will | ||
be used for naming the colorscheme in use `vim.g.colors_name`). | ||
- Add and test your new variant against the test cases for variants in its file: | ||
`test/abyss/palette_spec.lua` | ||
|
||
## Merging the pull request | ||
|
||
Your pull request should pass all code reviews (if there is) to | ||
merge it to `develop` . These code reviews are GitHub workflows. | ||
|
||
Also make sure you don't include any `CHANGELOG.md` in your pull request so you | ||
don't have conflicts with the original file in the `main` branch. | ||
|
||
## How should you write your commits? | ||
|
||
Refer to [release-please-action](https://github.com/googleapis/release-please-action?tab=readme-ov-file#how-should-i-write-my-commits) section. | ||
|
||
## Syntax highlight groups | ||
|
||
If you want to contribute about wrong syntax highlighting on colorscheme. This | ||
section will help you to determine what highlight group is being applied to a | ||
specific piece of syntax. It'll output the highlight group for the value under | ||
the cursor. | ||
|
||
### Treesitter highlighting | ||
|
||
Neovim has included a command with these characteristics. Just type: `:Inspect`. | ||
|
||
### Vim highlighting | ||
|
||
Add this function to your vimrc: | ||
|
||
```vim | ||
function! SynStack() | ||
for i1 in synstack(line("."), col(".")) | ||
let i2 = synIDtrans(i1) | ||
let n1 = synIDattr(i1, "name") | ||
let n2 = synIDattr(i2, "name") | ||
echo n1 "->" n2 | ||
endfor | ||
endfunction | ||
map <F2> <cmd>call SynStack()<cr> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
let g:airline#themes#abyss_boreal#palette = {} | ||
|
||
let s:statusline_bg = "#406385" | ||
let s:darkgreen = "#005d55" | ||
let s:white = "#A3D7DA" | ||
let s:fg = "#8c63c9" | ||
let s:shinyblue = "#1f45db" | ||
let s:red = "#ff002f" | ||
let s:black_inactive = "#202020" | ||
let s:yellow = "#d9bb62" | ||
let s:darkyellow = "#808000" | ||
let s:darkred = "#470b1b" | ||
|
||
let s:Normal_a = [s:white, s:statusline_bg, 255, 17] " guifg, guibg, ctermfg, ctermbg | ||
let s:Normal_b = [s:fg, s:statusline_bg, 245, 17] " guifg, guibg, ctermfg, ctermbg | ||
let s:Normal_c = [s:fg, s:statusline_bg, 245, 17] " guifg, guibg, ctermfg, ctermbg | ||
|
||
let s:Visual_a = [s:shinyblue, s:statusline_bg, 105, 17] " guifg, guibg, ctermfg, ctermbg | ||
let s:Visual_b = [s:fg, s:statusline_bg, 245, 17] " guifg, guibg, ctermfg, ctermbg | ||
let s:Visual_c = [s:fg, s:statusline_bg, 245, 17] " guifg, guibg, ctermfg, ctermbg | ||
|
||
let s:Replace_a = [s:red, s:statusline_bg, 9, 17] " guifg, guibg, ctermfg, ctermbg | ||
let s:Replace_b = [s:fg, s:statusline_bg, 245, 17] " guifg, guibg, ctermfg, ctermbg | ||
let s:Replace_c = [s:fg, s:statusline_bg, 245, 17] " guifg, guibg, ctermfg, ctermbg | ||
|
||
let s:Insert_a = [s:darkgreen, s:statusline_bg, 2, 17] " guifg, guibg, ctermfg, ctermbg | ||
let s:Insert_b = [s:fg, s:statusline_bg, 245, 17] " guifg, guibg, ctermfg, ctermbg | ||
let s:Insert_c = [s:fg, s:statusline_bg, 245, 17] " guifg, guibg, ctermfg, ctermbg | ||
|
||
let s:Inactive_a = [s:fg, s:black_inactive, 245, 0] " guifg, guibg, ctermfg, ctermbg | ||
let s:Inactive_b = [s:fg, s:black_inactive, 245, 0] " guifg, guibg, ctermfg, ctermbg | ||
let s:Inactive_c = [s:fg, s:black_inactive, 245, 0] " guifg, guibg, ctermfg, ctermbg | ||
|
||
let s:Warning = [s:yellow, s:statusline_bg, 11, 17] " guifg, guibg, ctermfg, ctermbg | ||
let s:Error = [s:red, s:statusline_bg, 9, 17] " guifg, guibg, ctermfg, ctermbg | ||
|
||
let s:IWarning = [s:darkyellow, s:statusline_bg, 3, 17] " guifg, guibg, ctermfg, ctermbg | ||
let s:IError = [s:darkred, s:statusline_bg, 1, 17] " guifg, guibg, ctermfg, ctermbg | ||
|
||
let g:airline#themes#abyss_boreal#palette.normal = airline#themes#generate_color_map(s:Normal_a, s:Normal_b, s:Normal_c) | ||
let g:airline#themes#abyss_boreal#palette.normal.airline_warning = s:Warning | ||
let g:airline#themes#abyss_boreal#palette.normal.airline_error = s:Error | ||
|
||
let g:airline#themes#abyss_boreal#palette.insert = airline#themes#generate_color_map(s:Insert_a, s:Insert_b, s:Insert_c) | ||
let g:airline#themes#abyss_boreal#palette.insert.airline_warning = s:Warning | ||
let g:airline#themes#abyss_boreal#palette.insert.airline_error = s:Error | ||
|
||
let g:airline#themes#abyss_boreal#palette.visual = airline#themes#generate_color_map(s:Visual_a, s:Visual_b, s:Visual_c) | ||
let g:airline#themes#abyss_boreal#palette.visual.airline_warning = s:Warning | ||
let g:airline#themes#abyss_boreal#palette.visual.airline_error = s:Error | ||
|
||
let g:airline#themes#abyss_boreal#palette.replace = airline#themes#generate_color_map(s:Replace_a, s:Replace_b, s:Replace_c) | ||
let g:airline#themes#abyss_boreal#palette.replace.airline_warning = s:Warning | ||
let g:airline#themes#abyss_boreal#palette.replace.airline_error = s:Error | ||
|
||
let g:airline#themes#abyss_boreal#palette.inactive = airline#themes#generate_color_map(s:Inactive_a, s:Inactive_b, s:Inactive_c) | ||
let g:airline#themes#abyss_boreal#palette.inactive.airline_warning = s:IWarning | ||
let g:airline#themes#abyss_boreal#palette.inactive.airline_error = s:IError | ||
|
||
let g:airline#themes#abyss_boreal#palette.normal.airline_term = s:Normal_c | ||
let g:airline#themes#abyss_boreal#palette.insert.airline_term = s:Insert_c | ||
let g:airline#themes#abyss_boreal#palette.replace.airline_term = s:Replace_c | ||
let g:airline#themes#abyss_boreal#palette.visual.airline_term = s:Visual_c | ||
let g:airline#themes#abyss_boreal#palette.inactive.airline_term = s:Inactive_c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
let s:statusline_bg = "#406385" | ||
let s:darkgreen = "#005d55" | ||
let s:white = "#A3D7DA" | ||
let s:fg = "#8c63c9" | ||
let s:shinyblue = "#2277ff" | ||
let s:red = "#ff002f" | ||
let s:black_inactive = "#202020" | ||
|
||
let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} | ||
let s:p.normal.left = [ [ s:white, s:statusline_bg, 255, 17, "bold" ] ] | ||
let s:p.normal.right = [ [ s:fg, s:statusline_bg, 245, 17 ] ] | ||
let s:p.normal.middle = [ [ s:fg, s:statusline_bg, 245, 17 ] ] | ||
|
||
let s:p.inactive.left = [ [ s:fg, s:black_inactive, 245, 0, "bold" ] ] | ||
let s:p.inactive.right = [ [ s:fg, s:black_inactive, 245, 0 ] ] | ||
let s:p.inactive.middle = [ [ s:fg, s:black_inactive, 245, 0 ] ] | ||
|
||
let s:p.insert.left = [ [ s:darkgreen, s:statusline_bg, 2, 17, "bold" ] ] | ||
let s:p.insert.right = [ [ s:fg, s:statusline_bg, 245, 17 ] ] | ||
let s:p.insert.middle = [ [ s:fg, s:statusline_bg, 245, 17 ] ] | ||
|
||
let s:p.replace.left = [ [ s:red, s:statusline_bg, 9, 17, "bold" ] ] | ||
let s:p.replace.right = [ [ s:fg, s:statusline_bg, 245, 17 ] ] | ||
let s:p.replace.middle = [ [ s:fg, s:statusline_bg, 245, 17 ] ] | ||
|
||
let s:p.visual.left = [ [ s:shinyblue, s:statusline_bg, 105, 17, "bold" ] ] | ||
let s:p.visual.right = [ [ s:fg, s:statusline_bg, 245, 17 ] ] | ||
let s:p.visual.middle = [ [ s:fg, s:statusline_bg, 245, 17 ] ] | ||
|
||
let s:p.tabline.left = [ [ s:white, s:statusline_bg, 255, 17, "bold" ] ] | ||
let s:p.tabline.right = [ [ s:red, s:statusline_bg, 9, 17 ] ] | ||
let s:p.tabline.middle = [ [ s:white, s:statusline_bg, 255, 17 ] ] | ||
let s:p.tabline.tabsel = [ [ s:statusline_bg, s:white, 17, 255 ] ] | ||
|
||
let g:lightline#colorscheme#abyss_boreal#palette = lightline#colorscheme#fill(s:p) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lua require("abyss").setup { palette = "abyss-boreal" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
lua require("abyss").setup {} | ||
lua require("abyss").setup { palette = "abyss" } |
Oops, something went wrong.