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]
|
||||
line-number = "relative"
|
||||
bufferline = "never"
|
||||
scrolloff = 10
|
||||
popup-border = "popup"
|
||||
end-of-line-diagnostics = "hint"
|
||||
|
||||
|
@ -29,6 +30,9 @@ right = [
|
|||
"position-percentage",
|
||||
"file-encoding"
|
||||
]
|
||||
mode.normal = "NORMAL"
|
||||
mode.insert = "INSERT"
|
||||
mode.select = "SELECT"
|
||||
|
||||
[editor.cursor-shape]
|
||||
normal = "block"
|
||||
|
@ -40,6 +44,7 @@ hidden = false
|
|||
|
||||
[editor.indent-guides]
|
||||
render = true
|
||||
skip-levels = 1
|
||||
|
||||
[editor.lsp]
|
||||
auto-signature-help = false
|
||||
|
@ -49,51 +54,79 @@ display-messages = true
|
|||
enable = true
|
||||
|
||||
[keys.normal]
|
||||
C-w = { c = ":buffer-close" }
|
||||
esc = ["collapse_selection", "keep_primary_selection"]
|
||||
|
||||
B = "extend_to_line_start"
|
||||
H = "goto_line_start"
|
||||
E = "extend_to_line_end"
|
||||
L = "goto_line_end"
|
||||
x = "extend_to_line_bounds"
|
||||
X = "extend_line_below"
|
||||
"{" = "goto_prev_paragraph"
|
||||
"}" = "goto_next_paragraph"
|
||||
|
||||
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"]
|
||||
|
||||
S-v = ["extend_to_line_bounds","select_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]
|
||||
b = "buffer_picker"
|
||||
n = ":buffer-next"
|
||||
p = ":buffer-previous"
|
||||
q = ":buffer-close"
|
||||
Q = ":buffer-close-all"
|
||||
C = ":buffer-close-others --skip-visible"
|
||||
tab = "goto_last_accessed_file"
|
||||
|
||||
[keys.normal.space.w]
|
||||
|
||||
[keys.normal.space.e]
|
||||
|
||||
[keys.normal.space.f]
|
||||
f = "file_picker"
|
||||
F = "file_picker_in_current_directory"
|
||||
e = "file_explorer"
|
||||
E = "file_explorer_in_current_directory"
|
||||
w = ":write"
|
||||
g = "changed_file_picker"
|
||||
|
||||
[keys.normal.space.r]
|
||||
r = ":reload"
|
||||
R = ":reload-all"
|
||||
c = ":config-reload"
|
||||
|
||||
[keys.normal.space.z]
|
||||
z = ":wq"
|
||||
a = ":wqa"
|
||||
|
||||
[keys.insert]
|
||||
C-g = "normal_mode"
|
||||
|
||||
[keys.select]
|
||||
y = ["yank_main_selection_to_clipboard", "yank"]
|
||||
C-h = "move_char_left"
|
||||
C-l = "move_char_right"
|
||||
|
|
|
@ -3,6 +3,12 @@ name = "yaml"
|
|||
auto-format = false
|
||||
formatter = { command = "yamlfmt", args = ["-"] }
|
||||
|
||||
[[language]]
|
||||
name = "python"
|
||||
language-servers = ["ruff", "pyright"]
|
||||
formatter = { command = "black", args = ["--quiet", "-"] }
|
||||
auto-format = true
|
||||
|
||||
[[language]]
|
||||
name = "xbps-template"
|
||||
scope = "source.xbps"
|
||||
|
|
Loading…
Add table
Reference in a new issue