helix: updates to config and python language
This commit is contained in:
parent
001c04d46e
commit
0e573e932e
2 changed files with 54 additions and 15 deletions
|
@ -3,6 +3,7 @@ theme = "gruvbox_dark_hard"
|
||||||
[editor]
|
[editor]
|
||||||
line-number = "relative"
|
line-number = "relative"
|
||||||
bufferline = "never"
|
bufferline = "never"
|
||||||
|
scrolloff = 10
|
||||||
popup-border = "popup"
|
popup-border = "popup"
|
||||||
end-of-line-diagnostics = "hint"
|
end-of-line-diagnostics = "hint"
|
||||||
|
|
||||||
|
@ -29,6 +30,9 @@ right = [
|
||||||
"position-percentage",
|
"position-percentage",
|
||||||
"file-encoding"
|
"file-encoding"
|
||||||
]
|
]
|
||||||
|
mode.normal = "NORMAL"
|
||||||
|
mode.insert = "INSERT"
|
||||||
|
mode.select = "SELECT"
|
||||||
|
|
||||||
[editor.cursor-shape]
|
[editor.cursor-shape]
|
||||||
normal = "block"
|
normal = "block"
|
||||||
|
@ -40,6 +44,7 @@ hidden = false
|
||||||
|
|
||||||
[editor.indent-guides]
|
[editor.indent-guides]
|
||||||
render = true
|
render = true
|
||||||
|
skip-levels = 1
|
||||||
|
|
||||||
[editor.lsp]
|
[editor.lsp]
|
||||||
auto-signature-help = false
|
auto-signature-help = false
|
||||||
|
@ -49,51 +54,79 @@ display-messages = true
|
||||||
enable = true
|
enable = true
|
||||||
|
|
||||||
[keys.normal]
|
[keys.normal]
|
||||||
C-w = { c = ":buffer-close" }
|
esc = ["collapse_selection", "keep_primary_selection"]
|
||||||
|
|
||||||
B = "extend_to_line_start"
|
B = "extend_to_line_start"
|
||||||
H = "goto_line_start"
|
H = "goto_line_start"
|
||||||
E = "extend_to_line_end"
|
E = "extend_to_line_end"
|
||||||
L = "goto_line_end"
|
L = "goto_line_end"
|
||||||
x = "extend_to_line_bounds"
|
A-w = "extend_next_word_start"
|
||||||
X = "extend_line_below"
|
A-e = "extend_next_word_end"
|
||||||
"{" = "goto_prev_paragraph"
|
A-b = "extend_prev_word_start"
|
||||||
"}" = "goto_next_paragraph"
|
X = "extend_line_above"
|
||||||
|
|
||||||
d = "delete_selection_noyank"
|
d = "delete_selection_noyank"
|
||||||
A-d = "delete_selection"
|
A-d = "delete_selection"
|
||||||
c = "change_selection_noyank"
|
c = "change_selection_noyank"
|
||||||
A-c = "change_selection"
|
A-c = "change_selection"
|
||||||
|
A-n = "extend_search_next"
|
||||||
|
A-p = "extend_search_prev"
|
||||||
y = ["yank_to_clipboard","yank"]
|
y = ["yank_to_clipboard","yank"]
|
||||||
|
|
||||||
S-v = ["extend_to_line_bounds","select_mode"]
|
S-v = ["extend_to_line_bounds","select_mode"]
|
||||||
S-ret = ["open_below", "insert_mode"]
|
S-ret = ["open_below", "insert_mode"]
|
||||||
|
|
||||||
|
"{" = "goto_prev_paragraph"
|
||||||
|
"}" = "goto_next_paragraph"
|
||||||
|
"[" = { "[" = "goto_previous_buffer" }
|
||||||
|
"]" = { "]" = "goto_next_buffer" }
|
||||||
|
|
||||||
|
[keys.select]
|
||||||
|
B = "extend_to_line_start"
|
||||||
|
H = "goto_line_start"
|
||||||
|
E = "extend_to_line_end"
|
||||||
|
L = "goto_line_end"
|
||||||
|
A-w = "extend_next_word_start"
|
||||||
|
A-e = "extend_next_word_end"
|
||||||
|
A-b = "extend_prev_word_start"
|
||||||
|
X = "extend_line_above"
|
||||||
|
d = "delete_selection_noyank"
|
||||||
|
A-d = "delete_selection"
|
||||||
|
c = "change_selection_noyank"
|
||||||
|
A-c = "change_selection"
|
||||||
|
A-n = "extend_search_next"
|
||||||
|
A-p = "extend_search_prev"
|
||||||
|
y = ["yank_to_clipboard","yank"]
|
||||||
|
|
||||||
|
[keys.normal.space]
|
||||||
|
l = ":toggle lsp.display-inlay-hints"
|
||||||
|
F = "no_op"
|
||||||
|
E = "no_op"
|
||||||
|
|
||||||
[keys.normal.space.b]
|
[keys.normal.space.b]
|
||||||
b = "buffer_picker"
|
b = "buffer_picker"
|
||||||
n = ":buffer-next"
|
|
||||||
p = ":buffer-previous"
|
|
||||||
q = ":buffer-close"
|
q = ":buffer-close"
|
||||||
Q = ":buffer-close-all"
|
Q = ":buffer-close-all"
|
||||||
C = ":buffer-close-others --skip-visible"
|
C = ":buffer-close-others --skip-visible"
|
||||||
tab = "goto_last_accessed_file"
|
tab = "goto_last_accessed_file"
|
||||||
|
|
||||||
[keys.normal.space.w]
|
|
||||||
|
|
||||||
[keys.normal.space.e]
|
|
||||||
|
|
||||||
[keys.normal.space.f]
|
[keys.normal.space.f]
|
||||||
f = "file_picker"
|
f = "file_picker"
|
||||||
|
F = "file_picker_in_current_directory"
|
||||||
e = "file_explorer"
|
e = "file_explorer"
|
||||||
|
E = "file_explorer_in_current_directory"
|
||||||
w = ":write"
|
w = ":write"
|
||||||
g = "changed_file_picker"
|
g = "changed_file_picker"
|
||||||
|
|
||||||
|
[keys.normal.space.r]
|
||||||
|
r = ":reload"
|
||||||
|
R = ":reload-all"
|
||||||
|
c = ":config-reload"
|
||||||
|
|
||||||
[keys.normal.space.z]
|
[keys.normal.space.z]
|
||||||
z = ":wq"
|
z = ":wq"
|
||||||
a = ":wqa"
|
a = ":wqa"
|
||||||
|
|
||||||
[keys.insert]
|
[keys.insert]
|
||||||
C-g = "normal_mode"
|
C-g = "normal_mode"
|
||||||
|
C-h = "move_char_left"
|
||||||
[keys.select]
|
C-l = "move_char_right"
|
||||||
y = ["yank_main_selection_to_clipboard", "yank"]
|
|
||||||
|
|
|
@ -3,6 +3,12 @@ name = "yaml"
|
||||||
auto-format = false
|
auto-format = false
|
||||||
formatter = { command = "yamlfmt", args = ["-"] }
|
formatter = { command = "yamlfmt", args = ["-"] }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "python"
|
||||||
|
language-servers = ["ruff", "pyright"]
|
||||||
|
formatter = { command = "black", args = ["--quiet", "-"] }
|
||||||
|
auto-format = true
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "xbps-template"
|
name = "xbps-template"
|
||||||
scope = "source.xbps"
|
scope = "source.xbps"
|
||||||
|
|
Loading…
Add table
Reference in a new issue