diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-10-04 14:36:37 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-10-04 14:36:37 +0800 |
| commit | 016fa6d44ea758a916396b63ae9601083cc0afac (patch) | |
| tree | 7e3da78079bb4ea891102995c9a0e98552a57345 /dot-config | |
| parent | ad9d063c518342775a971b46b7dd426fe2ad0990 (diff) | |
helix: wallust
Diffstat (limited to 'dot-config')
| -rw-r--r-- | dot-config/helix/config.toml | 69 | ||||
| -rw-r--r-- | dot-config/wallust/templates/helix.toml | 85 | ||||
| -rw-r--r-- | dot-config/wallust/wallust.toml | 3 |
3 files changed, 147 insertions, 10 deletions
diff --git a/dot-config/helix/config.toml b/dot-config/helix/config.toml index e05ad787..ee4fc84a 100644 --- a/dot-config/helix/config.toml +++ b/dot-config/helix/config.toml @@ -1,4 +1,4 @@ -theme = "tokyonight-transparent" +theme = "wallust" [editor] line-number = "relative" @@ -6,10 +6,12 @@ default-yank-register = "+" popup-border = "all" idle-timeout = 0 completion-trigger-len = 1 -bufferline = "always" auto-format = true color-modes = true rainbow-brackets = true +welcome-screen = false +undercurl = true +mouse = true [editor.cursor-shape] insert = "bar" @@ -18,11 +20,54 @@ normal = "block" [editor.lsp] display-inlay-hints = true auto-signature-help = false -display-progress-messages = true +# display-progress-messages = true + +[icons.vcs] +enabled = true +icon = "" + +[icons.mime] +enabled = true +directory = "🖿" +rust = "🦀" +python = "🐍" +go = "" +json = "" + +[icons.kind] +enabled = true + +[editor.notifications] +enable = true +style = "popup" +position = "top-right" +default-timeout = 5000 +padding = 0 + +[editor.notifications.border] +enable = true + +[editor.notifications.emojis] +info = "💡" +warning = "⚠️" +error = "❌" +success = "✅" + +[editor.cmdline] +style="bottom" # popup + +[editor.cmdline.icons] +search = " " +general = " " +command= " " + +[editor.bufferline] +render-mode = "always" +separator = "|" [editor.statusline] -left = [ "mode", "read-only-indicator", "version-control", "spinner"] -right = ["diagnostics", "register", "position", "position-percentage", "file-encoding", "file-type"] +left = [ "mode", "read-only-indicator", "version-control", "function-name", "spinner"] +right = ["diagnostics", "register", "position", "position-percentage", "file-encoding"] mode.normal = "N" mode.insert = "I" @@ -31,9 +76,6 @@ mode.select = "V" diagnostics = ["warning", "error"] workspace-diagnostics = ["warning", "error"] -[editor.file-picker] -hidden = false - [editor.whitespace.render] space = "none" tab = "all" @@ -56,6 +98,14 @@ render = true enable = false supersede-menu = true +[editor.file-picker] +hidden = false # enables ignoring hidden files +parents = true # enables reading ignore files from parent directories +ignore = true # enables reading .ignore files +git-ignore = true # enables reading .gitignore files +git-global = true +git-exclude = true + [keys.normal] tab = "move_parent_node_end" S-tab = "move_parent_node_start" @@ -81,8 +131,6 @@ w = ":write" 9 = ":goto-buffer 9" 0 = ":goto-buffer 0" - - [keys.normal." "."g"] g = "changed_file_picker" b = ":! git show --no-patch --format='%%h (%%an: %%ar): %%s' $(git blame -p %{buffer_name} -L%{cursor_line},+1 | head -1 | cut -d' ' -f1)" @@ -91,3 +139,4 @@ b = ":! git show --no-patch --format='%%h (%%an: %%ar): %%s' $(git blame -p %{bu C-f = "goto_next_tabstop" C-S-f = "goto_prev_tabstop" C-l = "signature_help" + diff --git a/dot-config/wallust/templates/helix.toml b/dot-config/wallust/templates/helix.toml new file mode 100644 index 00000000..6039a65e --- /dev/null +++ b/dot-config/wallust/templates/helix.toml @@ -0,0 +1,85 @@ +inherits = "base16_transparent" + +"comment" = {{ "{ fg = \"color8\" }" }} +"constant" = {{ "{ fg = \"color3\", modifiers = [\"bold\"] }" }} +"constant.character.escape" = {{ "{ fg = \"color5\" }" }} +"function" = {{ "{ fg = \"color1\", modifiers = [\"bold\"] }" }} +"keyword" = {{ "{ fg = \"color5\", modifiers = [\"bold\"] }" }} +"operator" = {{ "{ fg = \"color5\" }" }} +"punctuation" = {{ "{ fg = \"color5\" }" }} +"string" = {{ "{ fg = \"color2\", modifiers = [\"bold\"] }" }} +"path" = {{ "{ fg = \"color2\" }" }} +"string.regexp" = {{ "{ fg = \"color2\" }" }} +"tag" = {{ "{ fg = \"color3\", modifiers = [\"bold\"] }" }} +"type" = {{ "{ fg = \"color3\", modifiers = [\"bold\"] }" }} +"type.enum.variant" = {{ "{ fg = \"foreground\", modifiers = [\"italic\"] }" }} +"variable" = {{ "{ fg = \"foreground\" }" }} +"variable.builtin" = {{ "{ fg = \"color8\", modifiers = [\"italic\"] }" }} +"variable.parameter" = {{ "{ fg =\"color1\", modifiers = [\"italic\"] }" }} +"identifier" = {{ "{ fg =\"color1\", modifiers = [\"italic\"] }" }} +"members" = {{ "{ fg = \"color3\", modifiers = [\"bold\"] }" }} + +"diff.plus" = {{ "{ fg = \"color2\" }" }} +# "diff.delta" = {{ "{ fg = \"color8\", bg = \"color17\" }" }} +"diff.delta" = {{ "{ fg = \"color8\" }" }} +"diff.minus" = {{ "{ fg = \"color1\" }" }} + +# "ui.background" = {{ "{ fg = \"color5\", bg = \"color0\" }" }} +"ui.cursor" = {{ "{ fg = \"color0\", bg = \"color1\", modifiers = [\"dim\"] }" }} +"ui.cursor.match" = {{ "{ fg = \"color5\", modifiers = [\"underlined\"] }" }} +"ui.cursor.primary" = {{ "{ bg = \"color7\", modifier = [\"dim\"] }" }} +# "ui.help" = {{ "{ fg = \"foreground\", bg = \"color16\" }" }} +"ui.help" = {{ "{ fg = \"foreground\" }" }} +"ui.linenr" = {{ "{ fg = \"color1\" }" }} +"ui.linenr.selected" = {{ "{ fg = \"color7\", bg = \"color1\" }" }} +"ui.menu" = {{ "{ fg = \"foreground\" }" }} +# "ui.menu" = {{ "{ fg = \"foreground\", bg = \"color17\" }" }} +"ui.menu.selected" = {{ "{ fg = \"foreground\", bg = \"color1\" }" }} +"ui.menu.highlighted" = {{ "{ fg = \"color6\"}" }} +"ui.popup" = {{ "{ fg = \"color5\", bg = \"color17\" }" }} +# "ui.selection" = {{ "{ bg = \"color17\" }" }} +"ui.selection.primary" = {{ "{ bg = \"color4\", fg = \"color0\" }" }} +# "ui.statusline" = {{ "{ fg = \"foreground\", bg = \"color16\" }" }} +"ui.statusline" = {{ "{ fg = \"foreground\" }" }} +# "ui.statusline.inactive" = {{ "{ fg = \"color8\", bg = \"color16\" }" }} +"ui.statusline.inactive" = {{ "{ fg = \"color8\" }" }} +"ui.text" = {{ "{ fg = \"foreground\" }" }} +"ui.text.focus" = {{ "{ fg = \"color8\" }" }} +"ui.window" = {{ "{ fg = \"color5\" }" }} +"ui.virtual" = {{ "{ fg = \"color8\" }" }} + +"error" = {{ "{ fg = \"color1\" }" }} +"warning" = {{ "{ fg = \"color3\" }" }} +"info" = {{ "{ fg = \"color4\" }" }} +"hint" = {{ "{ fg = \"color8\" }" }} +"diagnostic" = {{ "{ modifiers = [\"underlined\"] }" }} + +"markup.heading" = {{ "{ fg = \"color3\", modifiers = [\"bold\"] }" }} +"markup.list" = "color8" +"markup.bold" = {{ "{ fg = \"color1\", modifiers = [\"bold\"] }" }} +"markup.italic" = {{ "{ fg = \"color8\", modifiers = [\"italic\"] }" }} +"markup.link.url" = "color8" +"markup.link.text" = "color5" +"markup.quote" = {{ "{ fg = \"color8\", modifiers = [\"italic\"] }" }} +"markup.raw" = {{ "{ fg = \"color8\" }" }} + +[palette] +foreground = "{{color7}}" +color0 = "{{color0}}" +color1 = "{{color1}}" +color2 = "{{color2}}" +color3 = "{{color3}}" +color4 = "{{color4}}" +color5 = "{{color5}}" +color6 = "{{color6}}" +color7 = "{{color7}}" +color8 = "{{color8}}" +color9 = "{{color9}}" +color10 = "{{color10}}" +color11 = "{{color11}}" +color12 = "{{color12}}" +color13 = "{{color13}}" +color14 = "{{color14}}" +color15 = "{{color15}}" +# color16 = "{{background | darken(1)}}" +# color17 = "{{background | lighten(10)}}" diff --git a/dot-config/wallust/wallust.toml b/dot-config/wallust/wallust.toml index 3a4b4c54..bec418ef 100644 --- a/dot-config/wallust/wallust.toml +++ b/dot-config/wallust/wallust.toml @@ -55,3 +55,6 @@ kitty.target = "~/.config/kitty/colors.conf" quickshell.template = "quickshell.qml" quickshell.target = "~/.config/quickshell/config/WallustColors.qml" + +helix.template = "helix.toml" +helix.target = "~/.config/helix/themes/wallust.toml" |
