-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(platforms): add generation for platform files #161
Draft
DOD-101
wants to merge
6
commits into
AlexvZyl:main
Choose a base branch
from
DOD-101:add-extra-gen
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7f07158
feat(platforms): add generation for platform files
DOD-101 dafc0b4
test(utils): add tests for new removeHash and template
DOD-101 0229e0c
feat(platforms): move all platform files to generation system
DOD-101 7a59d74
docs(README): add section on contributing a new platform
DOD-101 04890a8
refactor(platforms): minor adjustments and fixes
DOD-101 fa1effa
feat(platforms): add ghostty to platform generation
DOD-101 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,41 @@ | ||
local U = require('nordic.utils') | ||
|
||
local M = {} | ||
|
||
function M.generate(colors) | ||
local fishColors = U.removeHash(colors) | ||
|
||
return U.template( | ||
[[ | ||
# Name: Nordic | ||
# Auother: XXiaoA | ||
# https://fishshell.com/docs/current/interactive.html#syntax-highlighting-variables | ||
|
||
# Syntax Highlighting Colors | ||
fish_color_normal ${blue1} | ||
fish_color_command ${yellow.base} | ||
fish_color_keyword ${magenta.base} | ||
fish_color_quote ${green.base} | ||
fish_color_redirection ${white1} | ||
fish_color_end ${white0_normal} | ||
fish_color_error ${error} | ||
fish_color_param ${blue2} | ||
fish_color_comment ${gray4} | ||
fish_color_selection --background=${gray2} | ||
fish_color_search_match --background=${black1} | ||
fish_color_operator ${orange.base} | ||
fish_color_escape ${blue1} | ||
fish_color_autosuggestion ${gray5} | ||
|
||
# Completion Pager Colors | ||
fish_pager_color_progress ${blue1} | ||
fish_pager_color_prefix ${yellow.base} | ||
fish_pager_color_completion ${white1} | ||
fish_pager_color_description ${blue1} | ||
fish_pager_color_selected_background --background=${gray2} | ||
]], | ||
fishColors | ||
) | ||
end | ||
|
||
return M |
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,50 @@ | ||
local U = require('nordic.utils') | ||
|
||
local M = {} | ||
|
||
function M.generate(colors) | ||
local footColors = U.removeHash(colors) | ||
|
||
return U.template( | ||
[[ | ||
[colors] | ||
foreground=${fg} | ||
background=${bg} | ||
|
||
# black | ||
regular0=${black0} | ||
bright0=${gray2} | ||
|
||
# red | ||
regular1=${red.base} | ||
bright1=${red.bright} | ||
|
||
# green | ||
regular2=${green.base} | ||
bright2=${green.bright} | ||
|
||
# yellow | ||
regular3=${yellow.base} | ||
bright3=${yellow.bright} | ||
|
||
# blue | ||
regular4=${blue0} | ||
bright4=${blue2} | ||
|
||
# magenta | ||
regular5=${magenta.base} | ||
bright5=${magenta.bright} | ||
|
||
# cyan | ||
regular6=${cyan.base} | ||
bright6=${cyan.bright} | ||
|
||
# white | ||
regular7=${white0} | ||
bright7=${white1} | ||
]], | ||
footColors | ||
) | ||
end | ||
|
||
return M |
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,51 @@ | ||
local U = require('nordic.utils') | ||
|
||
local M = {} | ||
|
||
function M.generate(colors) | ||
return U.template( | ||
[[ | ||
# Nordic Colorscheme for Ghostty. | ||
# Based on https://github.com/AlexvZyl/nordic.nvim | ||
# Author: @jorgebef | ||
|
||
# To use this theme you have 2 options to install it: | ||
# | ||
# - Clone the theme file and set the theme option in your config to the absolute path of the theme file. | ||
# Example: | ||
# | ||
# ```ini | ||
# theme = "/home/jbef/.config/ghostty/nordic" | ||
# ``` | ||
# | ||
# - Copy the code directly inside your `ghostty` configuration file, usually located at `$HOME/.config/ghostty/config` | ||
|
||
background = ${bg} | ||
foreground = ${fg} | ||
cursor-color = ${white0} | ||
selection-background = ${gray1} | ||
selection-foreground = ${white0} | ||
|
||
palette = 0=${black0} | ||
palette = 1=${red.base} | ||
palette = 2=${green.base} | ||
palette = 3=${yellow.base} | ||
palette = 4=${blue0} | ||
palette = 5=${blue2} | ||
palette = 6=${magenta.base} | ||
palette = 7=${white0} | ||
|
||
palette = 8=${gray2} | ||
palette = 9=${red.bright} | ||
palette = 10=${green.bright} | ||
palette = 11=${yellow.bright} | ||
palette = 12=${blue2} | ||
palette = 13=${magenta.bright} | ||
palette = 14=${cyan.bright} | ||
palette = 15=${white1} | ||
]], | ||
colors | ||
) | ||
end | ||
|
||
return M |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels a little cumbersome to read: