diff --git a/.config/helix/config.toml b/.config/helix/config.toml index 9937725..ae458d2 100644 --- a/.config/helix/config.toml +++ b/.config/helix/config.toml @@ -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" ] diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index fe5f1a7..1b9d1bb 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -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"] diff --git a/.config/helix/themes/custom_gh_contrast.toml b/.config/helix/themes/custom_gh_contrast.toml index 36fc73a..9c9d997 100644 --- a/.config/helix/themes/custom_gh_contrast.toml +++ b/.config/helix/themes/custom_gh_contrast.toml @@ -1,7 +1,4 @@ - inherits = "github_dark_high_contrast" [palette] "fg.muted" = "#9ea1a3" - -# hi diff --git a/.config/kitty/mac-font.conf b/.config/kitty/mac-font.conf index b380b5a..b1bae34 100644 --- a/.config/kitty/mac-font.conf +++ b/.config/kitty/mac-font.conf @@ -1,4 +1,4 @@ -font_size 16.5 +font_size 15 font_family Fira Code Retina # Use Symbols Only from Nerd Font releases page diff --git a/bin/lbin b/bin/lbin index 78d49e0..ec8a6ae 100755 --- a/bin/lbin +++ b/bin/lbin @@ -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" "$@"