1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-10-17 20:52:40 +00:00

Done initial helix config

This commit is contained in:
Mo 2022-11-08 17:56:02 +01:00
parent 37d394c30a
commit bd1585c010
2 changed files with 50 additions and 9 deletions

View file

@ -3,9 +3,10 @@ theme = "onedark"
[editor]
mouse = false
shell = ["fish", "-c"]
line-number = "relative"
cursorline = true
true-color = true
bufferline = "multiple"
color-modes = true
[editor.lsp]
display-messages = true
@ -15,5 +16,36 @@ insert = "bar"
normal = "block"
select = "underline"
[editor.whitespace.render]
space = "none"
tab = "none"
newline = "all"
[editor.indent-guides]
render = true
[keys.normal]
p = "paste_clipboard_after"
P = "paste_clipboard_before"
y = "yank_joined_to_clipboard"
D = ["yank_main_selection_to_clipboard", "delete_selection"]
C-d = ["extend_to_line_bounds", "delete_selection"]
V = "extend_to_line_end"
C-k = "goto_next_buffer"
C-j = "goto_previous_buffer"
C-b = ":buffer-close"
esc = ["collapse_selection", "keep_primary_selection"]
[keys.insert]
esc = ["collapse_selection", "normal_mode"]
[keys.select]
p = "replace_selections_with_clipboard"
P = "no_op"
y = "yank_joined_to_clipboard"
D = ["yank_main_selection_to_clipboard", "delete_selection"]
V = "extend_to_line_end"
esc = ["collapse_selection", "keep_primary_selection", "normal_mode"]

View file

@ -1,20 +1,29 @@
[[language]]
name = "python"
roots = ["pyproject.toml"]
auto-format = true
formatter = { command = "black", args = ["-q", "-"] }
auto-format = true
[[language]]
name = "bash"
formatter = { command = "beautysh", args=["-"] }
auto-format = true
formatter = { command = "beautysh" }
[[language]]
name = "toml"
name = "markdown"
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo/.config/dprint.json", "--stdin", "md" ] }
auto-format = true
# TODO: djhtml
# TODO: dprint
# TODO: nginx_beautifier
# TODO: prettier
# TODO: stylua
[[language]]
name = "json"
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo/.config/dprint.json", "--stdin", "json"] }
auto-format = true
[[language]]
name = "html"
formatter = { command = "djlint", args = ["--reformat", "--quiet", "--preserve-blank-lines", "--format-css", "--format-js", "-"] }
auto-format = true
[[language]]
name = "julia"
auto-format = true