aboutsummaryrefslogtreecommitdiff
path: root/.config/helix/languages.toml
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-11-08 20:48:58 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-11-08 20:48:58 +0000
commitc2fbc4d1717864a0055592e0b73d71c010e8686c (patch)
tree76e5bf50cc0f9c1b83f474740a8015d7f4e0ef26 /.config/helix/languages.toml
parentb9d24b3b6bdaed04fab07d9150c51d4f0f7a5c7d (diff)
Initial commit
Diffstat (limited to '.config/helix/languages.toml')
-rw-r--r--.config/helix/languages.toml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml
new file mode 100644
index 0000000..84d7e45
--- /dev/null
+++ b/.config/helix/languages.toml
@@ -0,0 +1,44 @@
+# introduce new language server
+[language-server.scls]
+command = "simple-completion-language-server"
+
+[language-server.scls.config]
+max_completion_items = 20 # set max completion results len for each group: words, snippets, unicode-input
+snippets_first = true # completions will return before snippets by default
+feature_words = true # enable completion by word
+feature_snippets = true # enable snippets
+feature_unicode_input = true # enable "unicode input"
+feature_paths = true # enable path completion
+
+
+# write logs to /tmp/completion.log
+[language-server.scls.environment]
+RUST_LOG = "info,simple-completion-langauge-server=info"
+LOG_FILE = "/tmp/completion.log"
+
+# append langage server to existed languages
+[[language]]
+name = "bash"
+language-servers = [ "scls", "bash-language-server" ]
+
+[[language]]
+name = "lua"
+language-servers = [ "scls", "lua-language-server" ]
+
+[[language]]
+name = "python"
+language-servers = [ "scls", "pylsp" ]
+
+[[language]]
+name = "toml"
+language-servers = [ "scls" ]
+
+# introduce a new language to enable completion on any doc by forcing set language with :set-language stub
+[[language]]
+name = "stub"
+scope = "text.stub"
+file-types = []
+shebangs = []
+roots = []
+auto-format = false
+language-servers = [ "scls" ]