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

1
helix/.gitignore vendored
View file

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