commit 5e703312a2fe0c2429034fbfbc38075fd4a30b6a
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Wed, 19 Jun 2024 21:23:10 +0200
feat: add helix configuration
Diffstat:
2 files changed, 66 insertions(+), 0 deletions(-)
diff --git a/helix/.config/helix/config.toml b/helix/.config/helix/config.toml
@@ -0,0 +1,52 @@
+theme = "rose_pine"
+
+[editor]
+mouse = true
+middle-click-paste = false
+color-modes = true
+auto-completion = true
+auto-format = true
+auto-info = true
+idle-timeout = 500
+cursorline = true
+rulers = [81]
+line-number = "absolute"
+
+[editor.lsp]
+display-messages = true
+
+[editor.file-picker]
+max-depth = 5
+
+[editor.statusline]
+left = ["mode", "spinner", "file-name"]
+#center = ["file-name"]
+right = ["diagnostics", "file-type", "selections", "position", "position-percentage"]
+separator = "│"
+
+[editor.whitespace.render]
+space = "all"
+tab = "all"
+newline = "none"
+
+[editor.cursor-shape]
+normal = "block"
+insert = "block"
+select = "block"
+
+[keys.normal]
+p = ":clipboard-paste-before"
+P = ":clipboard-paste-after"
+y = ":clipboard-yank"
+C-c = { C-c = ["goto_prev_paragraph", "collapse_selection", "goto_next_paragraph", ":pipe-to ~/.local/bin/send-to-tmux", "collapse_selection"], c = ["toggle_comments"], m = [":w", ":sh make 1>/dev/null"] }
+C-r = ["extend_to_line_bounds", ":reflow"]
+
+[keys.insert]
+C-c = { C-c = ["normal_mode", "goto_prev_paragraph", "collapse_selection", "goto_next_paragraph", ":pipe-to ~/.local/bin/send-to-tmux", "collapse_selection"], c = ["toggle_comments"], m = ["normal_mode", ":w", ":sh make 1>/dev/null"] }
+
+# Coding: send to terminal
+[keys.select]
+C-c = { C-c = [":pipe-to ~/.local/bin/send-to-tmux"], c = ["toggle_comments"], m = [":w", ":sh make 1>/dev/null"] }
+y = ":clipboard-yank"
+p = ":clipboard-paste-replace"
+C-r = ":reflow"
diff --git a/helix/.config/helix/languages.toml b/helix/.config/helix/languages.toml
@@ -0,0 +1,14 @@
+[[language]]
+name = "markdown"
+scope = "source.md"
+injection-regex = "md|markdown"
+file-types = ["md", "markdown", "rmd", "Rmd", "PULLREQ_EDITMSG"]
+soft-wrap.enable = true
+roots = [".marksman.toml"]
+language-servers = [ "ltex" ]
+indent = { tab-width = 2, unit = " " }
+
+[language-server.ltex]
+command = "$HOME/.local/bin/ltex-ls"
+
+