Skip to content

Commit

Permalink
Add support for Ghostty terminal emulator (#160)
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge Befan <[email protected]>
  • Loading branch information
jorgebef and Jorge Befan authored Jan 12, 2025
1 parent 1ee4044 commit 11cf48e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/nordic/colors/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local U = require('nordic.utils')
local P = require('nordic.colors.nordic')

---@class NordicPalette: NordicColors
local C = {}

function C.build_palette()
Expand Down
2 changes: 1 addition & 1 deletion lua/nordic/colors/nordic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local palette = {

-- Grays
-- This color is used on their website's dark theme.
gray0 = '#242933', -- bg
gray0 = '#242933', --bg
-- Polar Night.
gray1 = '#2E3440',
gray2 = '#3B4252',
Expand Down
12 changes: 12 additions & 0 deletions platforms/ghostty/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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`


27 changes: 27 additions & 0 deletions platforms/ghostty/nordic
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Nordic Colorscheme for Ghostty.
# Based on https://github.com/AlexvZyl/nordic.nvim
# Author: @jorgebef

palette = 0=#191D24
palette = 1=#BF616A
palette = 2=#A3BE8C
palette = 3=#EBCB8B
palette = 4=#81A1C1
palette = 5=#B48EAD
palette = 6=#8FBCBB
palette = 7=#D8DEE9

palette = 8=#3B4252
palette = 9=#D06F79
palette = 10=#B1D196
palette = 11=#F0D399
palette = 12=#88C0D0
palette = 13=#C895BF
palette = 14=#93CCDC
palette = 15=#E5E9F0

background = #242933
foreground = #D8DEE9
cursor-color = #D8DEE9
selection-background = #2E3440
selection-foreground = #D8DEE9

0 comments on commit 11cf48e

Please sign in to comment.