1
0
Fork 0

helix: Install with theme

This commit is contained in:
Jeremy Kaplan 2026-04-29 21:32:42 -07:00
commit ca246e1c31
6 changed files with 30 additions and 7 deletions

View file

@ -15,7 +15,7 @@ install_dark() {
ln -sf "${DOTFILES}/vim/colors/jdkaplan-dark.vim" "${DOTFILES}/vim/colors/jdkaplan.vim" ln -sf "${DOTFILES}/vim/colors/jdkaplan-dark.vim" "${DOTFILES}/vim/colors/jdkaplan.vim"
ln -sf "${DOTFILES}/neovim/colors/jdkaplan-cool.lua" "${DOTFILES}/neovim/colors/jdkaplan-temp.lua" ln -sf "${DOTFILES}/neovim/colors/jdkaplan-cool.lua" "${DOTFILES}/neovim/colors/jdkaplan-temp.lua"
cat "${DOTFILES}/helix/dark.toml" "${DOTFILES}/helix/main.toml" > "${DOTFILES}/helix/config.toml" "${DOTFILES}/helix/install" dark
if [ "${OSTYPE}" == 'Linux' ]; then if [ "${OSTYPE}" == 'Linux' ]; then
ln -sf "${DOTFILES}/xsettingsd/xsettingsd-dark.conf" "${DOTFILES}/xsettingsd/xsettingsd.conf" ln -sf "${DOTFILES}/xsettingsd/xsettingsd-dark.conf" "${DOTFILES}/xsettingsd/xsettingsd.conf"
@ -35,7 +35,7 @@ install_light() {
ln -sf "${DOTFILES}/vim/colors/jdkaplan-light.vim" "${DOTFILES}/vim/colors/jdkaplan.vim" ln -sf "${DOTFILES}/vim/colors/jdkaplan-light.vim" "${DOTFILES}/vim/colors/jdkaplan.vim"
ln -sf "${DOTFILES}/neovim/colors/jdkaplan-warm.lua" "${DOTFILES}/neovim/colors/jdkaplan-temp.lua" ln -sf "${DOTFILES}/neovim/colors/jdkaplan-warm.lua" "${DOTFILES}/neovim/colors/jdkaplan-temp.lua"
cat "${DOTFILES}/helix/light.toml" "${DOTFILES}/helix/main.toml" > "${DOTFILES}/helix/config.toml" "${DOTFILES}/helix/install" light
if [ "${OSTYPE}" == 'Linux' ]; then if [ "${OSTYPE}" == 'Linux' ]; then
ln -sf "${DOTFILES}/xsettingsd/xsettingsd-light.conf" "${DOTFILES}/xsettingsd/xsettingsd.conf" ln -sf "${DOTFILES}/xsettingsd/xsettingsd-light.conf" "${DOTFILES}/xsettingsd/xsettingsd.conf"
@ -54,6 +54,9 @@ postinstall() {
# to trigger the reload. # to trigger the reload.
touch "${DOTFILES}/alacritty/alacritty.toml" touch "${DOTFILES}/alacritty/alacritty.toml"
# Helix reloads the config in response to SIGUSR1.
pkill -USR1 helix || true
if [ "${OSTYPE}" == 'Linux' ]; then if [ "${OSTYPE}" == 'Linux' ]; then
killall --signal HUP xsettingsd killall --signal HUP xsettingsd
fi fi

View file

@ -5,6 +5,7 @@
- mkdir -p ~/.config/gh - mkdir -p ~/.config/gh
- mkdir -p ~/.task - mkdir -p ~/.task
- ./bin/set-colors - ./bin/set-colors
- ./helix/install
- ./task/install - ./task/install
- clean: ["~", "~/.config"] - clean: ["~", "~/.config"]

1
helix/.gitignore vendored
View file

@ -1 +1,2 @@
config.toml config.toml
theme.toml

12
helix/install Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -exuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
case "${1-}" in
light) ln -sf light.toml theme.toml ;;
dark) ln -sf dark.toml theme.toml ;;
esac
cat theme.toml main.toml > config.toml

7
helix/languages.toml Normal file
View file

@ -0,0 +1,7 @@
[[language]]
name = "go"
auto-format = true
formatter = { command = "goimports" }
[language-server.rust-analyzer.config.check]
command = "clippy"

View file

@ -4,7 +4,6 @@ cursorline = true
gutters = [ gutters = [
"diff", "diff",
"diagnostics", "diagnostics",
"spacer",
"line-numbers", "line-numbers",
"spacer", "spacer",
] ]
@ -14,13 +13,13 @@ insert = "bar"
normal = "block" normal = "block"
select = "underline" select = "underline"
[editor.soft-wrap]
enable = true
[editor.statusline] [editor.statusline]
left = ["mode", "spinner", "file-name"] left = ["mode", "spinner", "file-name"]
center = [] center = []
right = ["diagnostics", "selections", "position", "position-percentage", "file-encoding"] right = ["diagnostics", "selections", "position", "position-percentage", "file-encoding"]
[keys.normal] [keys.normal]
"\\" = { w = ":w" } "C-l" = [":config-reload", ":redraw"]
"C-e" = "scroll_down"
"C-y" = "scroll_up"