summaryrefslogtreecommitdiff
path: root/dot-config/helix
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-09-08 21:55:30 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-09-08 21:55:30 +0800
commit758d808513dc014849cf8e51b7bc870b5acf46f2 (patch)
tree526c025c40ecd82ae4784ae78b15603259c0ae8d /dot-config/helix
parent0b74e0e163246d92a2295b6c79e3a1413b3a20b8 (diff)
new: helix
Diffstat (limited to 'dot-config/helix')
-rw-r--r--dot-config/helix/config.toml84
-rw-r--r--dot-config/helix/languages.toml40
-rw-r--r--dot-config/helix/themes/tokyonight-transparent.toml2
3 files changed, 126 insertions, 0 deletions
diff --git a/dot-config/helix/config.toml b/dot-config/helix/config.toml
new file mode 100644
index 00000000..8bedc0f7
--- /dev/null
+++ b/dot-config/helix/config.toml
@@ -0,0 +1,84 @@
+theme = "tokyonight-transparent"
+
+[editor]
+line-number = "relative"
+default-yank-register = "+"
+popup-border = "all"
+completion-trigger-len = 1
+bufferline = "always"
+auto-format = true
+
+[editor.cursor-shape]
+insert = "bar"
+normal = "block"
+
+[editor.lsp]
+display-inlay-hints = true
+
+[editor.statusline]
+left = ["mode", "spinner"]
+center = ["file-name"]
+right = ["diagnostics", "selections", "position", "file-encoding", "file-line-ending", "file-type"]
+separator = "│"
+mode.normal = "NORMAL"
+mode.insert = "INSERT"
+mode.select = "SELECT"
+diagnostics = ["warning", "error"]
+workspace-diagnostics = ["warning", "error"]
+
+[editor.file-picker]
+hidden = false
+
+[editor.whitespace.render]
+space = "none"
+tab = "all"
+nbsp = "none"
+nnbsp = "none"
+newline = "none"
+
+[editor.whitespace.characters]
+space = "·"
+nbsp = "⍽"
+nnbsp = "␣"
+tab = "→"
+newline = "⏎"
+tabpad = "·" # Tabs will look like "→···" (depending on tab width)
+
+[editor.indent-guides]
+render = true
+
+[editor.smart-tab]
+enable = false
+supersede-menu = true
+
+[keys.normal]
+tab = "move_parent_node_end"
+S-tab = "move_parent_node_start"
+
+# [keys.insert]
+# S-tab = "move_parent_node_start"
+
+[keys.select]
+tab = "extend_parent_node_end"
+S-tab = "extend_parent_node_start"
+
+# [keys.normal]
+# C-f = "jump_forward"
+# C-S-f = "jump_backward"
+
+# [keys.insert]
+# # Disable Tab as a jump so it doesn't override
+# tab = "no_op"
+# C-f = "jump_forward"
+# C-S-f = "jump_backward"
+
+# [keys.select]
+# C-f = "jump_forward"
+# C-S-f = "jump_backward"
+
+
+[keys.normal." "]
+q = ":quit"
+c = ":buffer-close"
+tab = "insert_tab"
+w = ":write"
diff --git a/dot-config/helix/languages.toml b/dot-config/helix/languages.toml
new file mode 100644
index 00000000..612d4dab
--- /dev/null
+++ b/dot-config/helix/languages.toml
@@ -0,0 +1,40 @@
+[language-server.scls]
+command = "simple-completion-language-server"
+
+[language-server.scls.config]
+feature_words = false # enable completion by word
+feature_snippets = true # enable snippets
+snippets_first = true # completions will return before snippets by default
+snippets_inline_by_word_tail = false # suggest snippets by WORD tail, for example text `xsq|` become `x^2|` when snippet `sq` has body `^2`
+feature_unicode_input = false # enable "unicode input"
+feature_paths = false # enable path completion
+feature_citations = false # enable citation completion (only on `citation` feature enabled)
+
+
+# write logs to /tmp/completion.log
+[language-server.scls.environment]
+RUST_LOG = "info,simple-completion-language-server=info"
+LOG_FILE = "/tmp/completion.log"
+
+[[language]]
+name = "git-commit"
+language-servers = [ "scls" ]
+
+[[language]]
+name = "cpp"
+auto-format = true
+indent = { tab-width = 4, unit = "t" }
+language-servers = [ "scls", "clangd" ]
+
+[[language]]
+name = "rust"
+indent = { tab-width = 4, unit = "t" }
+language-servers = [ "scls", "rust-analyzer" ]
+
+# [[language]]
+# name = "markdown"
+# language-servers = [ "mdpls" ]
+
+# [language-server.mdpls]
+# command = "/usr/bin/mdpls"
+# config = { markdown.preview.auto = true }
diff --git a/dot-config/helix/themes/tokyonight-transparent.toml b/dot-config/helix/themes/tokyonight-transparent.toml
new file mode 100644
index 00000000..b0cb35eb
--- /dev/null
+++ b/dot-config/helix/themes/tokyonight-transparent.toml
@@ -0,0 +1,2 @@
+inherits = "tokyonight"
+"ui.background" = {}