From 7e4da5dff92bf8686db779d61a2585c1baf07594 Mon Sep 17 00:00:00 2001 From: aleidk Date: Tue, 25 Mar 2025 15:32:48 -0300 Subject: [PATCH] add helix config --- .dotter/global.toml | 5 +++- config/helix/config.toml | 56 +++++++++++++++++++++++++++++++++++++ config/helix/languages.toml | 3 ++ 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 config/helix/config.toml create mode 100644 config/helix/languages.toml diff --git a/.dotter/global.toml b/.dotter/global.toml index f13e66e..1954a53 100644 --- a/.dotter/global.toml +++ b/.dotter/global.toml @@ -7,7 +7,7 @@ header = ".dotter/handlebars_helpers/header.rhai" # CLI package [cli] -depends = ["nvim", "zsh", "fzf", "starship"] +depends = ["helix", "nvim", "zsh", "fzf", "starship"] [cli.variables] nerd_font = "JetBrainsMono" @@ -45,6 +45,9 @@ depends = ["rust"] [nushell.files] "config/nushell" = "~/.config/nushell" +[helix.files] +"config/helix" = "~/.config/helix" + [nvim.files] "config/nvim" = "~/.config/nvim" [nvim.files."config/nvim/lua/aleidk/lazy.lua"] diff --git a/config/helix/config.toml b/config/helix/config.toml new file mode 100644 index 0000000..a51d166 --- /dev/null +++ b/config/helix/config.toml @@ -0,0 +1,56 @@ +theme = "catppuccin_macchiato" + +[keys.normal.g] +u = "switch_to_lowercase" +U = "switch_to_uppercase" + +# LSP actions +[keys.normal.space.l] +j = "goto_next_diag" +k = "goto_prev_diag" + +# Git +[keys.normal.space.g] +g = [ + ":new", + ":insert-output lazygit", + ":buffer-close!", + ":redraw", + ":reload-all" +] + +[editor] +line-number = "relative" +cursorline = true +color-modes = true +scrolloff = 15 +default-yank-register = "*" +bufferline = "multiple" +popup-border = "all" + + +[editor.cursor-shape] +insert = "bar" +normal = "block" +select = "underline" + +[editor.indent-guides] +render = true + +[editor.statusline] +left = ["mode", "spacer", "version-control", "file-type", "file-name","file-modification-indicator", "read-only-indicator", "spinner"] +center = [] +right = ["diagnostics", "position-percentage"] +mode.normal = "" +mode.insert = "" +mode.select = "" + +[editor.file-picker] +hidden = false + +[editor.lsp] +display-inlay-hints = true + +[editor.inline-diagnostics] +cursor-line = "hint" +other-lines = "error" diff --git a/config/helix/languages.toml b/config/helix/languages.toml new file mode 100644 index 0000000..036911f --- /dev/null +++ b/config/helix/languages.toml @@ -0,0 +1,3 @@ + +[[language]] +name = "rust"