helix configs

This commit is contained in:
Muaz Ahmad 2024-04-02 11:42:42 +05:00
parent 3c722d49da
commit 10b12614ac
2 changed files with 149 additions and 0 deletions

View file

@ -0,0 +1,60 @@
# custom helix config
# mahmad2000@protonmail.com
# custom theme
theme = "molokai-terminal"
# editor settings
[editor]
scrolloff = 2
bufferline = "always"
auto-completion = false
auto-info = false
color-modes = true
[editor.statusline]
left = ["mode", "spacer", "file-name", "read-only-indicator", "file-modification-indicator", "file-encoding"]
center = ["position", "spacer", "register"]
right = ["diagnostics", "spacer", "version-control"]
[editor.lsp]
auto-signature-help = false
[editor.cursor-shape]
normal = "underline"
insert = "bar"
[editor.whitespace.render]
tab = "all"
[editor.indent-guides]
render = true
[editor.gutters]
layout = ["diagnostics", "line-numbers", "diff"]
[editor.gutters.line-numbers]
min-width = 4
# keybinds
# make yank change/delete deliberate instead of default
[keys.normal]
d = "delete_selection_noyank"
A-d = "delete_selection"
c = "change_selection_noyank"
A-c = "change_selection"
# less cursed insert movement if fat fingered a key
[keys.insert]
"C-left" = "move_prev_word_end"
"C-right" = "move_next_word_start"
# buffer control mode
[keys.normal."b"]
d = ":buffer-close"
n = "goto_next_buffer"
p = "goto_previous_buffer"
t = ":new"

View file

@ -0,0 +1,89 @@
# Terminal dark theme with bold and italics
# mahmad2000@protonmail.com
# base ui
"ui.menu" = { fg = "gray", bg = "black" }
"ui.menu.selected" = { modifiers = ["reversed"] }
"ui.window" = { bg = "black" }
"ui.popup" = { fg = "light-blue", bg = "black" }
"ui.help" = { fg = "white", bg = "black" }
# gutter opts
"ui.linenr" = { fg = "light-gray", bg = "black" }
"ui.linenr.selected" = { fg = "yellow", bg = "black", modifiers = ["bold"] }
"ui.gutter" = { bg = "black" }
"diff.plus" = "light-green"
"diff.minus" = "light-red"
"diff.delta" = "light-yellow"
"error" = "light-red"
"warning" = "yellow"
"debug" = "gray"
"info" = "light-blue"
"hint" = "light-blue"
# status-line
"ui.statusline" = { fg = "light-gray", bg = "black" }
"ui.statusline.insert" = { fg = "cyan", modifiers = ["italic"] }
"ui.statusline.select" = { fg = "magenta", modifiers = ["bold"] }
"ui.statusline.normal" = "light-gray"
# cursor
"ui.selection" = { fg = "gray", modifiers = ["reversed"] }
"ui.cursor" = { fg = "light-gray", modifiers = ["reversed"] }
"ui.cursor.primary" = { fg = "light-gray", modifiers = ["reversed", "slow_blink"] }
# misc visual helpers
"ui.virtual" = "gray"
"underline.style" = "curl"
"diagnostic" = { modifiers = ["underlined"] }
"ui.text.focus" = { fg = "yellow", modifiers = ["bold"] }
# syntax coloring and modifiers
"attribute" = "green"
"type" = "light-blue"
"type.builtin" = { fg = "light-blue", modifiers = ["bold"] }
"type.enum.variant" = { fg = "green" , modifiers = ["bold"] }
"constructor" = { fg = "green", modifiers = ["italic"] }
"constant" = "red"
"constant.builtin" = { fg = "red", modifiers = ["italic"] }
"constant.character" = "cyan"
"constant.character.escape" = { fg = "red", modifiers = ["italic"] }
"constant.numeric" = "red"
"string" = "cyan"
"string.regexp" = { fg = "cyan", modifiers = ["italic"] }
"string.special" = { fg = "cyan", modifiers = ["bold", "italic"] }
"comment" = { fg = "gray", modifiers = ["italic"] }
"variable" = "blue"
"variable.builtin" = { fg = "blue", modifiers = ["bold"] }
"variable.parameter" = { fg = "blue", modifiers = ["italic"] }
"variable.other.member" = "green"
"punctuation.delimiter" = "light-gray"
"keyword.control" = "light-magenta"
"keyword.operator" = "light-magenta"
"keyword.function" = { fg = "light-magenta", modifiers = ["italic"] }
"keyword.directive" = { fg = "magenta", modifiers = ["bold", "italic"] }
"keyword.storage.type" = "light-cyan"
"keyword.storage.modifier" = { fg = "light-cyan", modifiers = ["italic"] }
"operator" = "light-red"
"function.builtin" = { fg = "white", modifiers = ["italic"] }
"function.macro" = { fg = "white", modifiers = ["bold", "italic"] }
"function.method" = { fg = "white", modifiers = ["bold"] }
"function.special" = { fg = "white", modifiers = ["bold", "italic"] }
"function" = "white"
"tag" = "magenta"
"tag.builtin" = { fg = "magenta", modifiers = ["bold"]}
"namespace" = "red"
"special" = { fg = "red", modifiers = ["italic"]}