~hedy/dotfiles

accdb8ebdf19bcd18a40aaea851635915df2f6a9 — hedy 4 months ago e53edef
Update helix config
M .config/helix/config.toml => .config/helix/config.toml +6 -2
@@ 1,15 1,16 @@
theme = "custom_gh_contrast"
theme = "catppuccin_macchiato"

[editor]
line-number = "relative"
bufferline = "multiple"
color-modes = true
auto-completion = false
#auto-completion = false
completion-trigger-len = 1
insert-final-newline = false
scroll-lines = 1
scrolloff = 0
idle-timeout = 1000
soft-wrap.enable = true

# Features
[editor.file-picker]


@@ 63,6 64,9 @@ w = ":write"
q = ":quit-all"
x = ":write-quit-all"

[keys.select]
o = "flip_selections"

# Emacs
[keys.insert]
"C-a" = [ "goto_line_start" ]

M .config/helix/languages.toml => .config/helix/languages.toml +10 -5
@@ 1,8 1,13 @@
[language-server.ccls]
command = "ccls"
args = []
config = {}
environment = {}

[language-server.clangd]
command = "/opt/homebrew/opt/llvm@16/bin/clangd"

[[language]]
name = "cpp"
language-servers = []
#language-servers = [ "ccls" ]
formatter = { command = "clang-format", args = ["--fallback-style=Google"] }

# doesn't work!
[language-servers.clangd]
args = ["-std=c++17"]

M .config/helix/themes/custom_gh_contrast.toml => .config/helix/themes/custom_gh_contrast.toml +0 -3
@@ 1,7 1,4 @@

inherits = "github_dark_high_contrast"

[palette]
"fg.muted" = "#9ea1a3"

# hi

M .config/kitty/mac-font.conf => .config/kitty/mac-font.conf +1 -1
@@ 1,4 1,4 @@
font_size 16.5
font_size 15
font_family Fira Code Retina

# Use Symbols Only from Nerd Font releases page

M bin/lbin => bin/lbin +5 -3
@@ 12,14 12,16 @@ EOF
    exit
fi

prog="$1"
shift
rootdir="$(pwd)"
while [[ "$rootdir" != "" && ! -x "$rootdir/bin/$1" ]]; do
while [[ "$rootdir" != "" && ! -x "$rootdir/bin/$prog" ]]; do
    rootdir=${rootdir%/*}
done

if [[ ! -x "$rootdir/bin/$1" ]]; then
if [[ ! -x "$rootdir/bin/$prog" ]]; then
    echo "No executable found in bin of parent directories."
    exit 1
fi

"$rootdir/bin/$1"
"$rootdir/bin/$prog" "$@"