Tiny Riggs
My Dot Files
Helix
Config
theme = "test_theme"
editor.soft-wrap.enable = true
[keys.normal]
w = "move_visual_line_up"
s = "move_visual_line_down"
S-a = "move_char_left"
S-d = "move_char_right"
a = "move_prev_word_start"
d = "move_next_word_start"
x = ["yank_to_clipboard", "delete_selection"]
c = "yank_to_clipboard"
v = "paste_clipboard_after"
q = "select_mode"
l = "extend_line_below"
p = "goto_next_paragraph"
C-o = ":set gutters.line-numbers.min-width 60"
S-o = ":set gutters.line-numbers.min-width 0"
e = "insert_mode"
C-L = ["move_prev_word_start", "move_next_word_end", "search_selection", "select_all", "select_regex"]
[keys.select]
w = "extend_visual_line_up"
s = "extend_visual_line_down"
a = "extend_char_left"
d = "extend_char_right"
x = ["yank_to_clipboard", "delete_selection"]
c = "yank_to_clipboard"
v = "paste_clipboard_after"
[keys.insert.C-space]
m = ":insert-output ~/.config/helix/snippets.sh ifmain"
e = ":insert-output ~/.config/helix/snippets.sh iferr"
b = ":insert-output ~/.config/helix/snippets.sh bash"
p = ":insert-output ~/.config/helix/snippets.sh blog"
Theme
inherits = "dark_high_contrast"
"diagnostic.info" = { underline = { color = "#ff0000" , style = "double_line" } }
Languages
[[language]]
name = "python"
language-servers = [ "pyright" ]
[[language]]
name = "markdown"
language-servers = ["marksman", "cspell"]
[language-server.cspell]
command = "cspell-lsp"
args = ["--stdio"]
[language-server.gopls]
command = "gopls"
args = ["-logfile=/tmp/gopls.log", "serve"]
[language-server.gopls.config]
"ui.diagnostic.staticcheck" = true
Snippets.sh
#!/bin/bash
if [[ "$1" == "ifmain" ]]; then
echo -e 'if __name__ == "__main__":\n pass'
elif [[ "$1" == "iferr" ]]; then
echo -e 'if err != nil {\n return err\n}'
elif [[ "$1" == "bash" ]]; then
echo -e '#/bin/bash'
elif [[ "$1" == "blog" ]]; then
echo -e '---\ntitle: \ndate: Last Modified\ncategories: []\ntags: post\n---'
fi