This commit is contained in:
2025-10-09 11:23:52 +03:00
parent 964db24d10
commit 81b0bd4851
13 changed files with 80 additions and 41 deletions
+10 -12
View File
@@ -8,11 +8,11 @@ theme = "custom" # monokai_soda, kaolin-valley-dark, material_deep_ocean, carbon
shell = ["fish", "-c"]
line-number = "relative"
cursorline = true
continue-comments = false # annoying
auto-completion = true # TODO: is it annoying?
completion-replace = true # why is it not default
continue-comments = true # doc comments
auto-completion = true
completion-replace = false # STOP deleting stuff
auto-format = true
auto-info = true # TODO: idle-timeout?
auto-info = true # TODO: idle-timeout?
# true-color = true
# undercurl = true
rulers = [80, 100]
@@ -107,7 +107,7 @@ C-backspace = "delete_word_backward"
[keys.select]
";" = ["collapse_selection", "normal_mode"]
a = ["collapse_selection", "append_mode"]
# a = ["collapse_selection", "append_mode"]
x = "extend_line"
V = ["extend_to_line_bounds", "trim_selections"]
@@ -135,7 +135,7 @@ C-l = "jump_view_right"
[keys.normal]
"=" = ":format"
"A-=" = "format_selections"
a = ["collapse_selection", "append_mode"]
# a = ["collapse_selection", "append_mode"]
x = "extend_line"
V = ["extend_to_line_bounds", "trim_selections"]
@@ -182,22 +182,20 @@ n = "file_picker_in_current_buffer_directory"
# Toggle
[keys.normal.space.t]
f = ":toggle auto-format"
c = ":toggle cursorline"
w = ":toggle soft-wrap.enable"
n = ":toggle line-number absolute relative"
b = ":toggle bufferline never multiple"
r = ":set-option rulers []"
R = ":set-option rulers [80,100]"
r = ":toggle rulers [] [80,100]"
g = ":toggle indent-guides.render"
i = ":toggle lsp.display-inlay-hints"
e = ":toggle end-of-line-diagnostics disable hint"
d = ":toggle inline-diagnostics.cursor-line disable warning"
D = ":toggle inline-diagnostics.other-lines disable error"
# z = [ # TODO: not work
# t = [":toggle cursorline", ":toggle line-number absolute relative"]
# https://github.com/helix-editor/helix/issues/13187
# t = [ # TODO: not work
# ":set-option cursorline true",
# ":set-option rulers [100]",
# ":set-option soft-wrap.enable false",
+32
View File
@@ -18,6 +18,38 @@ auto-format = false
name = "toml"
auto-format = true
[[language]]
name = "sql"
auto-format = true
formatter = { command = "sqlformat", args = [
"--keywords",
"upper", # "upper", "lower", "capitalize"
"--identifiers",
"lower",
"--reindent",
"--indent_width",
"2",
# "--compact", "True",
"-",
] }
[[language]]
name = "rust"
[language.debugger]
name = "lldb-dap"
transport = "stdio"
command = "lldb-dap"
[[language.debugger.templates]]
name = "binary"
request = "launch"
completion = [{ name = "binary", completion = "filename" }]
args = { program = "{0}", initCommands = [
"command script import /usr/local/etc/lldb_vscode_rustc_primer.py",
] }
# TODO: still aligns
[language-server.taplo.config]