aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/helix/languages.toml49
1 files changed, 48 insertions, 1 deletions
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"