Signed-off-by: jolheiser <git@jolheiser.com>
main
jolheiser 2025-08-05 21:48:14 -05:00
parent 0d410f342c
commit c6c255ff88
No known key found for this signature in database
1 changed files with 207 additions and 191 deletions

View File

@ -39,212 +39,228 @@
inline-diagnostics.cursor-line = "error"; inline-diagnostics.cursor-line = "error";
lsp.display-messages = true; lsp.display-messages = true;
}; };
keys = { keys =
normal = { let
space = { caseMenu = with pkgs; {
q = ":quit"; p = ":pipe ${lib.getExe sttr} pascal";
Q = ":quit!"; c = ":pipe ${lib.getExe sttr} camel";
w = ":write"; k = ":pipe ${lib.getExe sttr} kebab";
W = ":write!"; K = ":pipe ${lib.getExe sttr} kebab | ${lib.getExe sttr} upper";
o = "file_picker_in_current_buffer_directory"; s = ":pipe ${lib.getExe sttr} snake";
S = ":pipe ${lib.getExe sttr} snake | ${lib.getExe sttr} upper";
u = ":pipe ${lib.getExe sttr} upper";
l = ":pipe ${lib.getExe sttr} lower";
t = ":pipe ${lib.getExe sttr} title";
}; };
C-c = ":config-open"; in
C-r = ":config-reload"; {
"C-/" = "toggle_comments"; normal = {
S-right = "goto_next_buffer"; "~" = caseMenu;
S-left = "goto_previous_buffer"; space = {
C-b = ":buffer-close"; q = ":quit";
C-s = [ Q = ":quit!";
"select_all" w = ":write";
"select_regex" W = ":write!";
]; o = "file_picker_in_current_buffer_directory";
};
C-c = ":config-open";
C-r = ":config-reload";
"C-/" = "toggle_comments";
S-right = "goto_next_buffer";
S-left = "goto_previous_buffer";
C-b = ":buffer-close";
C-s = [
"select_all"
"select_regex"
];
C-j = "shrink_selection"; C-j = "shrink_selection";
C-k = "expand_selection"; C-k = "expand_selection";
C-l = "select_next_sibling"; C-l = "select_next_sibling";
C-a = "select_all"; C-a = "select_all";
C-u = [ C-u = [
"half_page_up" "half_page_up"
"align_view_center" "align_view_center"
]; ];
C-d = [ C-d = [
"half_page_down" "half_page_down"
"align_view_center" "align_view_center"
]; ];
"{" = [ "{" = [
"goto_prev_paragraph" "goto_prev_paragraph"
"collapse_selection" "collapse_selection"
]; ];
"}" = [ "}" = [
"goto_next_paragraph" "goto_next_paragraph"
"collapse_selection" "collapse_selection"
]; ];
"0" = "goto_line_start"; "0" = "goto_line_start";
"$" = "goto_line_end"; "$" = "goto_line_end";
"^" = "goto_first_nonwhitespace"; "^" = "goto_first_nonwhitespace";
G = "goto_file_end"; G = "goto_file_end";
"%" = "match_brackets"; "%" = "match_brackets";
V = [ V = [
"select_mode" "select_mode"
"extend_to_line_bounds"
];
C = [
"collapse_selection"
"extend_to_line_end"
"change_selection"
];
D = [
"extend_to_line_end"
"delete_selection"
];
S = "surround_add";
d = {
d = [
"extend_to_line_bounds" "extend_to_line_bounds"
];
C = [
"collapse_selection"
"extend_to_line_end"
"change_selection"
];
D = [
"extend_to_line_end"
"delete_selection" "delete_selection"
]; ];
t = [ "extend_till_char" ]; S = "surround_add";
s = [ "surround_delete" ];
i = [ "select_textobject_inner" ];
a = [ "select_textobject_around" ];
};
x = "delete_selection"; d = {
p = "paste_clipboard_after"; d = [
P = "paste_clipboard_before"; "extend_to_line_bounds"
y = [ "delete_selection"
"yank_main_selection_to_clipboard" ];
"normal_mode" t = [ "extend_till_char" ];
"flip_selections" s = [ "surround_delete" ];
"collapse_selection" i = [ "select_textobject_inner" ];
]; a = [ "select_textobject_around" ];
Y = [
"extend_to_line_bounds"
"yank_main_selection_to_clipboard"
"goto_line_start"
"collapse_selection"
];
w = [
"move_next_word_start"
"move_char_right"
"collapse_selection"
];
e = [
"move_next_word_end"
"collapse_selection"
];
b = [
"move_prev_word_start"
"collapse_selection"
];
i = [
"insert_mode"
"collapse_selection"
];
a = [
"append_mode"
"collapse_selection"
];
esc = [
"collapse_selection"
"keep_primary_selection"
];
};
insert = {
esc = [
"collapse_selection"
"normal_mode"
];
};
select = {
space = {
j = with pkgs; {
e = ":pipe ${lib.getExe jq}";
c = ":pipe ${lib.getExe jq} -c";
}; };
x = "delete_selection";
p = "paste_clipboard_after";
P = "paste_clipboard_before";
y = [
"yank_main_selection_to_clipboard"
"normal_mode"
"flip_selections"
"collapse_selection"
];
Y = [
"extend_to_line_bounds"
"yank_main_selection_to_clipboard"
"goto_line_start"
"collapse_selection"
];
w = [
"move_next_word_start"
"move_char_right"
"collapse_selection"
];
e = [
"move_next_word_end"
"collapse_selection"
];
b = [
"move_prev_word_start"
"collapse_selection"
];
i = [
"insert_mode"
"collapse_selection"
];
a = [
"append_mode"
"collapse_selection"
];
esc = [
"collapse_selection"
"keep_primary_selection"
];
}; };
"{" = [ insert = {
"extend_to_line_bounds" esc = [
"goto_prev_paragraph" "collapse_selection"
]; "normal_mode"
"}" = [ ];
"extend_to_line_bounds" };
"goto_next_paragraph" select = {
]; "~" = caseMenu;
"0" = "goto_line_start"; space = {
"$" = "goto_line_end"; j = with pkgs; {
"^" = "goto_first_nonwhitespace"; e = ":pipe ${lib.getExe jq}";
G = "goto_file_end"; c = ":pipe ${lib.getExe jq} -c";
D = [ };
"extend_to_line_bounds" };
"delete_selection" "{" = [
"normal_mode" "extend_to_line_bounds"
]; "goto_prev_paragraph"
C = [ ];
"goto_line_start" "}" = [
"extend_to_line_bounds" "extend_to_line_bounds"
"change_selection" "goto_next_paragraph"
]; ];
"%" = "match_brackets"; "0" = "goto_line_start";
S = "surround_add"; "$" = "goto_line_end";
"^" = "goto_first_nonwhitespace";
G = "goto_file_end";
D = [
"extend_to_line_bounds"
"delete_selection"
"normal_mode"
];
C = [
"goto_line_start"
"extend_to_line_bounds"
"change_selection"
];
"%" = "match_brackets";
S = "surround_add";
i = "select_textobject_inner"; i = "select_textobject_inner";
a = "select_textobject_around"; a = "select_textobject_around";
tab = [ tab = [
"insert_mode" "insert_mode"
"collapse_selection" "collapse_selection"
]; ];
C-a = [ C-a = [
"append_mode" "append_mode"
"collapse_selection" "collapse_selection"
]; ];
k = [ k = [
"extend_line_up" "extend_line_up"
"extend_to_line_bounds" "extend_to_line_bounds"
]; ];
j = [ j = [
"extend_line_down" "extend_line_down"
"extend_to_line_bounds" "extend_to_line_bounds"
]; ];
d = [ d = [
"yank_main_selection_to_clipboard" "yank_main_selection_to_clipboard"
"delete_selection" "delete_selection"
]; ];
x = [ x = [
"yank_main_selection_to_clipboard" "yank_main_selection_to_clipboard"
"delete_selection" "delete_selection"
]; ];
y = [ y = [
"yank_main_selection_to_clipboard" "yank_main_selection_to_clipboard"
"normal_mode" "normal_mode"
"flip_selections" "flip_selections"
"collapse_selection" "collapse_selection"
]; ];
Y = [ Y = [
"extend_to_line_bounds" "extend_to_line_bounds"
"yank_main_selection_to_clipboard" "yank_main_selection_to_clipboard"
"goto_line_start" "goto_line_start"
"collapse_selection" "collapse_selection"
"normal_mode" "normal_mode"
]; ];
p = "replace_selections_with_clipboard"; p = "replace_selections_with_clipboard";
P = "paste_clipboard_before"; P = "paste_clipboard_before";
esc = [ esc = [
"collapse_selection" "collapse_selection"
"keep_primary_selection" "keep_primary_selection"
"normal_mode" "normal_mode"
]; ];
};
}; };
};
}; };
languages = with pkgs; { languages = with pkgs; {
language = [ language = [