Skip to content

Commit c8eccca

Browse files
committed
refactor: ghostty to hm
1 parent f3900b1 commit c8eccca

File tree

4 files changed

+57
-61
lines changed

4 files changed

+57
-61
lines changed

nix/TODO.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
- bat theme
44
- dynamic theme https://x.com/mitchellh/status/1859725298360889539
5-
- https://gist.github.com/rsms/fb463396c95ad8d9efa338a8050a01dc
65

76
- https://github.com/hkscarf/dotnix

nix/modules/ghostty.nix

Lines changed: 0 additions & 57 deletions
This file was deleted.

nix/modules/home-manager.nix

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
pkgs,
66
...
77
}:
8+
let
9+
colors = import ./colors.nix;
10+
in
811
{
912
home.packages = with pkgs; [
1013
amber
@@ -45,7 +48,6 @@
4548
SSH_AUTH_SOCK = "${config.home.homeDirectory}/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock";
4649
};
4750
imports = [
48-
./ghostty.nix
4951
./git.nix
5052
./opencode.nix
5153
./shell.nix
@@ -65,6 +67,59 @@
6567
gh-poi
6668
];
6769
};
70+
programs.ghostty = {
71+
enable = true;
72+
package = null; # TODO: Add install
73+
settings = {
74+
copy-on-select = "clipboard";
75+
cursor-style = "block";
76+
cursor-style-blink = false;
77+
font-family = "JetBrains Nerd Font Mono";
78+
font-feature = "-calt";
79+
font-size = 14;
80+
keybind = [
81+
"global:control+grave_accent=toggle_quick_terminal"
82+
"ctrl+shift+h=goto_split:left"
83+
"ctrl+shift+j=goto_split:bottom"
84+
"ctrl+shift+k=goto_split:top"
85+
"ctrl+shift+l=goto_split:right"
86+
"ctrl+shift+enter=toggle_split_zoom"
87+
"ctrl+shift+u=scroll_page_up"
88+
"ctrl+shift+d=scroll_page_down"
89+
];
90+
macos-non-native-fullscreen = true;
91+
macos-option-as-alt = "left";
92+
macos-titlebar-style = "tabs";
93+
mouse-hide-while-typing = true;
94+
shell-integration-features = "no-cursor";
95+
theme = "tmm-dark";
96+
unfocused-split-opacity = 1;
97+
window-height = 50;
98+
window-padding-balance = true;
99+
window-padding-x = 0;
100+
window-padding-y = 0;
101+
window-width = 178;
102+
};
103+
themes = {
104+
# TODO: Add light theme
105+
# https://github.com/mitchellh/ghostty/issues/809
106+
tmm-dark = {
107+
background = colors.dark.background;
108+
cursor-color = colors.dark.cursor;
109+
foreground = colors.dark.foreground;
110+
palette = [
111+
"0=${colors.dark.black}"
112+
"1=${colors.dark.red}"
113+
"2=${colors.dark.green}"
114+
"3=${colors.dark.yellow}"
115+
"4=${colors.dark.blue}"
116+
"5=${colors.dark.orange}"
117+
"6=${colors.dark.cyan}"
118+
"7=${colors.dark.white}"
119+
];
120+
};
121+
};
122+
};
68123
programs.home-manager.enable = true;
69124
programs.ssh = {
70125
enable = true;

nvim/lazy-lock.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@
1414
"mini.surround": { "branch": "main", "commit": "7a8606333affe7ce637a0ba91bbafc46fc42bfa0" },
1515
"noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
1616
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
17-
"nvim-lspconfig": { "branch": "master", "commit": "16878c7a018cba66a6e990286bdb6afc29ca13d3" },
17+
"nvim-lspconfig": { "branch": "master", "commit": "e844850b3143a1627437f811549fc7d70cfedf05" },
1818
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
1919
"nvim-treesitter-context": { "branch": "master", "commit": "dca8726fea2c14e1ce6adbaa76a04816fbfaff61" },
2020
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
2121
"oil.nvim": { "branch": "master", "commit": "07f80ad645895af849a597d1cac897059d89b686" },
22-
"pretty-ts-errors.nvim": { "branch": "main", "commit": "3c896bbd9d0cecab151e33ddd10b8b43993b5ef0" },
2322
"snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" },
2423
"trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" },
2524
"ts-comments.nvim": { "branch": "main", "commit": "1bd9d0ba1d8b336c3db50692ffd0955fe1bb9f0c" },

0 commit comments

Comments
 (0)