Update helix config

This commit is contained in:
hedy 2023-12-30 18:05:44 +08:00
parent e53edef376
commit accdb8ebdf
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
5 changed files with 22 additions and 14 deletions

View File

@ -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" ]

View File

@ -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"]

View File

@ -1,7 +1,4 @@
inherits = "github_dark_high_contrast"
[palette]
"fg.muted" = "#9ea1a3"
# hi

View File

@ -1,4 +1,4 @@
font_size 16.5
font_size 15
font_family Fira Code Retina
# Use Symbols Only from Nerd Font releases page

View File

@ -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" "$@"