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] [editor]
line-number = "relative" line-number = "relative"
bufferline = "multiple" bufferline = "multiple"
color-modes = true color-modes = true
auto-completion = false #auto-completion = false
completion-trigger-len = 1 completion-trigger-len = 1
insert-final-newline = false insert-final-newline = false
scroll-lines = 1 scroll-lines = 1
scrolloff = 0 scrolloff = 0
idle-timeout = 1000 idle-timeout = 1000
soft-wrap.enable = true
# Features # Features
[editor.file-picker] [editor.file-picker]
@ -63,6 +64,9 @@ w = ":write"
q = ":quit-all" q = ":quit-all"
x = ":write-quit-all" x = ":write-quit-all"
[keys.select]
o = "flip_selections"
# Emacs # Emacs
[keys.insert] [keys.insert]
"C-a" = [ "goto_line_start" ] "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]] [[language]]
name = "cpp" name = "cpp"
language-servers = [] #language-servers = [ "ccls" ]
formatter = { command = "clang-format", args = ["--fallback-style=Google"] } 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" inherits = "github_dark_high_contrast"
[palette] [palette]
"fg.muted" = "#9ea1a3" "fg.muted" = "#9ea1a3"
# hi

View File

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

View File

@ -12,14 +12,16 @@ EOF
exit exit
fi fi
prog="$1"
shift
rootdir="$(pwd)" rootdir="$(pwd)"
while [[ "$rootdir" != "" && ! -x "$rootdir/bin/$1" ]]; do while [[ "$rootdir" != "" && ! -x "$rootdir/bin/$prog" ]]; do
rootdir=${rootdir%/*} rootdir=${rootdir%/*}
done done
if [[ ! -x "$rootdir/bin/$1" ]]; then if [[ ! -x "$rootdir/bin/$prog" ]]; then
echo "No executable found in bin of parent directories." echo "No executable found in bin of parent directories."
exit 1 exit 1
fi fi
"$rootdir/bin/$1" "$rootdir/bin/$prog" "$@"