helix: Install with theme
This commit is contained in:
parent
802f16b0ea
commit
ca246e1c31
6 changed files with 30 additions and 7 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
1
helix/.gitignore
vendored
|
|
@ -1 +1,2 @@
|
||||||
config.toml
|
config.toml
|
||||||
|
theme.toml
|
||||||
|
|
|
||||||
12
helix/install
Executable file
12
helix/install
Executable 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
7
helix/languages.toml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[[language]]
|
||||||
|
name = "go"
|
||||||
|
auto-format = true
|
||||||
|
formatter = { command = "goimports" }
|
||||||
|
|
||||||
|
[language-server.rust-analyzer.config.check]
|
||||||
|
command = "clippy"
|
||||||
|
|
@ -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"
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue