diff options
Diffstat (limited to 'helix/.config')
-rw-r--r-- | helix/.config/helix/config.toml | 34 | ||||
-rw-r--r-- | helix/.config/helix/languages.toml | 14 | ||||
-rw-r--r-- | helix/.config/sh/rc.d/helix | 2 |
3 files changed, 50 insertions, 0 deletions
diff --git a/helix/.config/helix/config.toml b/helix/.config/helix/config.toml new file mode 100644 index 0000000..d0985ca --- /dev/null +++ b/helix/.config/helix/config.toml @@ -0,0 +1,34 @@ +theme = "vim_dark_high_contrast" + +[editor] +gutters = ["diagnostics", "diff"] +auto-info = false +color-modes = true +true-color = true + +[editor.soft-wrap] +enable = true + +[editor.indent-guides] +render = true +character = "βΈ½" + +[editor.lsp] +display-messages = true + +[keys.normal] +tab = ":w" +"|" = ":q" +"\\" = "shell_pipe" + +"C-d" = ":buffer-close" + +"ret" = "goto_definition" +"backspace" = "jump_backward" + +[keys.normal.g] +j = "goto_last_line" +k = "goto_file_start" + +[keys.normal.space] +o = ":diffg" diff --git a/helix/.config/helix/languages.toml b/helix/.config/helix/languages.toml new file mode 100644 index 0000000..98c9fc2 --- /dev/null +++ b/helix/.config/helix/languages.toml @@ -0,0 +1,14 @@ +[language-server.rust-analyzer] +command = "ra-multiplex" +config = { checkOnSave = { command = "clippy" }, cargo = { allFeatures = true }, diagnostics = { disabled = ["inactive-code"] } } + +[[language]] +name = "python" +language-servers = ["pyright"] +formatter = { command = "black", args = ["--target-version=py311", "--quiet", "-"] } +auto-format = true + +[language-server.pyright] +command = "pyright-langserver" +args = ["--stdio"] +config = {} diff --git a/helix/.config/sh/rc.d/helix b/helix/.config/sh/rc.d/helix new file mode 100644 index 0000000..2dad3e5 --- /dev/null +++ b/helix/.config/sh/rc.d/helix @@ -0,0 +1,2 @@ +alias hx="helix" +export EDITOR=$(command -v helix) |