From 5a458f5ef2d6c302e69c93b210e6a2aee8201fc8 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sat, 21 Dec 2024 13:04:35 +0000 Subject: Updated Helix languages.toml to include a larger scope for various shell files. --- .config/helix/languages.toml | 49 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index 84d7e45..a8933bb 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -16,10 +16,57 @@ feature_paths = true # enable path completion RUST_LOG = "info,simple-completion-langauge-server=info" LOG_FILE = "/tmp/completion.log" -# append langage server to existed languages [[language]] name = "bash" +scope = "source.bash" +injection-regex = "(shell|bash|zsh|sh)" +file-types = [ + "sh", + "bash", + "zsh", + "zshenv", + "zlogin", + "zlogout", + "zprofile", + "zshrc", + "eclass", + "ebuild", + "bazelrc", + "Renviron", + "zsh-theme", + "ksh", + "cshrc", + "tcshrc", + "bashrc_Apple_Terminal", + "zshrc_Apple_Terminal", + { glob = "tmux.conf" }, + { glob = ".bash_history" }, + { glob = ".bash_login" }, + { glob = ".bash_logout" }, + { glob = ".bash_profile" }, + { glob = ".bashrc" }, + { glob = ".profile" }, + { glob = ".shrc" }, + { glob = ".zshenv" }, + { glob = ".zlogin" }, + { glob = ".zlogout" }, + { glob = ".zprofile" }, + { glob = ".zshrc" }, + { glob = ".zimrc" }, + { glob = "APKBUILD" }, + { glob = ".bash_aliases" }, + { glob = ".Renviron" }, + { glob = ".xprofile" }, + { glob = ".xsession" }, + { glob = ".xsessionrc" }, + { glob = ".yashrc" }, + { glob = ".yash_profile" }, + { glob = ".hushlogin" }, +] +shebangs = ["sh", "bash", "dash", "zsh"] +comment-token = "#" language-servers = [ "scls", "bash-language-server" ] +indent = { tab-width = 2, unit = " " } [[language]] name = "lua" -- cgit v1.2.3