helix.drv @main -
refs -
log -
-
https://git.jolheiser.com/helix.drv.git
feat: cooklang
Also reformats using the RFC
Signed-off-by: jolheiser <git@jolheiser.com>
Signature
-----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY
oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5
AAAAQKm1GYSpc7g32h57QLi1/icLaCR1vkmJzbyk1HdkciJK2d9OBOboIHAaTFu3tXEkUj
D+M3QEoKkq+H10Q15HkQg=
-----END SSH SIGNATURE-----
diff --git a/config.nix b/config.nix
index b2d713069d2286dfddb33ea815f327723afbc8b5..9590f3fec01cfed435950843ca4e2ff5d653571c 100644
--- a/config.nix
+++ b/config.nix
@@ -1,5 +1,14 @@
{pkgs ? import <nixpkgs> {}}: {
+ "}" = ["goto_next_paragraph" "collapse_selection"];
+ pkgs ? import <nixpkgs> { },
+}:
- ignore = [".idea/" "result" "node_modules/" "dist/"];
+{
+ ignore = [
+ ".idea/"
+ "result"
+ "node_modules/"
+ "dist/"
+ ];
settings = {
theme = "catppuccin_mocha_transparent";
editor = {
@@ -43,41 +52,73 @@ "C-/" = "toggle_comments";
S-right = "goto_next_buffer";
S-left = "goto_previous_buffer";
C-b = ":buffer-close";
- C-s = ["select_all" "select_regex"];
+ C-s = [
+ "select_all"
+ "select_regex"
+ ];
C-j = "shrink_selection";
C-k = "expand_selection";
C-l = "select_next_sibling";
C-a = "select_all";
+ C-u = [
+ indent-guides = {
editor = {
+ "align_view_center"
+ ];
+ C-d = [
- editor = {
{pkgs ? import <nixpkgs> {}}: {
+ a = ["select_textobject_around"];
+ "align_view_center"
+ ];
- editor = {
+ "{" = [
+ "goto_prev_paragraph"
+ "collapse_selection"
ignore = [".idea/" "result" "node_modules/" "dist/"];
+ mouse = false;
- "}" = ["goto_next_paragraph" "collapse_selection"];
+ "}" = [
+ "goto_next_paragraph"
+ "collapse_selection"
+ ];
"0" = "goto_line_start";
"$" = "goto_line_end";
"^" = "goto_first_nonwhitespace";
G = "goto_file_end";
"%" = "match_brackets";
+ V = [
+ "select_mode"
+ "extend_to_line_bounds"
+ ];
+ render = true;
editor = {
- color-modes = true;
+ "collapse_selection"
+ render = true;
line-number = "relative";
+ "change_selection"
+ ];
+ D = [
+ render = true;
line-number = "relative";
{pkgs ? import <nixpkgs> {}}: {
+ "goto_line_start"
+ ];
S = "surround_add";
d = {
- line-number = "relative";
+ d = [
+ "extend_to_line_bounds"
+ "delete_selection"
+ ];
+ skip-levels = 1;
theme = "catppuccin_mocha_transparent";
- line-number = "relative";
+ skip-levels = 1;
editor = {
- s = ["surround_delete"];
+ skip-levels = 1;
line-number = "relative";
- mouse = false;
- line-number = "relative";
+{pkgs ? import <nixpkgs> {}}: {
bufferline = "always";
+ mouse = false;
};
x = "delete_selection";
@@ -94,23 +136,52 @@ "goto_line_start"
"collapse_selection"
];
+ skip-levels = 1;
bufferline = "always";
+{pkgs ? import <nixpkgs> {}}: {
bufferline = "always";
+ color-modes = true;
{pkgs ? import <nixpkgs> {}}: {
+ c = ":pipe jq -c";
- bufferline = "always";
+ "collapse_selection"
ignore = [".idea/" "result" "node_modules/" "dist/"];
+ mouse = false;
-
+ e = [
- bufferline = "always";
+ "move_next_word_end"
+ "collapse_selection"
+ ];
+ soft-wrap.enable = true;
settings = {
- bufferline = "always";
+ soft-wrap.enable = true;
theme = "catppuccin_mocha_transparent";
+ "collapse_selection"
+ ];
+ i = [
+ "insert_mode"
+ "collapse_selection"
+ ];
+ a = [
+ soft-wrap.enable = true;
bufferline = "always";
+ "collapse_selection"
+ ];
+ theme = "catppuccin_mocha_transparent";
editor = {
{pkgs ? import <nixpkgs> {}}: {
+ C-a = ["append_mode" "collapse_selection"];
+ "collapse_selection"
+ "keep_primary_selection"
+ ];
+{pkgs ? import <nixpkgs> {}}: {
theme = "catppuccin_mocha_transparent";
- bufferline = "always";
+ insert = {
+ esc = [
+ mouse = false;
line-number = "relative";
+ "normal_mode"
+ ];
+ };
select = {
space = {
j = {
@@ -117,35 +189,76 @@ e = ":pipe jq";
c = ":pipe jq -c";
};
};
+ indent-guides = {
color-modes = true;
+ "extend_to_line_bounds"
+ "goto_prev_paragraph"
ignore = [".idea/" "result" "node_modules/" "dist/"];
+ mouse = false;
+ "}" = [
- "}" = ["extend_to_line_bounds" "goto_next_paragraph"];
+ "extend_to_line_bounds"
+ "goto_next_paragraph"
+ ];
"0" = "goto_line_start";
"$" = "goto_line_end";
"^" = "goto_first_nonwhitespace";
G = "goto_file_end";
+ D = [
+ "extend_to_line_bounds"
+ render = true;
color-modes = true;
+ mouse = false;
theme = "catppuccin_mocha_transparent";
- color-modes = true;
+ ];
+ render = true;
editor = {
+ "goto_line_start"
+ "extend_to_line_bounds"
+ "change_selection"
+ ];
"%" = "match_brackets";
S = "surround_add";
i = "select_textobject_inner";
a = "select_textobject_around";
- tab = ["insert_mode" "collapse_selection"];
+ tab = [
+{pkgs ? import <nixpkgs> {}}: {
color-modes = true;
+ line-number = "relative";
+ "collapse_selection"
+ ];
+ C-a = [
+{pkgs ? import <nixpkgs> {}}: {
color-modes = true;
+ bufferline = "always";
+ "collapse_selection"
+ ];
-{pkgs ? import <nixpkgs> {}}: {
+ ignore = [".idea/" "result" "node_modules/" "dist/"];
+ theme = "catppuccin_mocha_transparent";
+ ignore = [".idea/" "result" "node_modules/" "dist/"];
+ editor = {
-{pkgs ? import <nixpkgs> {}}: {
+ "extend_to_line_bounds"
+ ];
+ j = [
+ ignore = [".idea/" "result" "node_modules/" "dist/"];
-{pkgs ? import <nixpkgs> {}}: {
+ mouse = false;
+ "extend_to_line_bounds"
+ ];
+ d = [
+ "yank_main_selection_to_clipboard"
{pkgs ? import <nixpkgs> {}}: {
+ "goto_line_start"
ignore = [".idea/" "result" "node_modules/" "dist/"];
+ mouse = false;
-{pkgs ? import <nixpkgs> {}}: {
+ ignore = [".idea/" "result" "node_modules/" "dist/"];
+ color-modes = true;
+ mouse = false;
settings = {
+ "delete_selection"
+ ];
y = [
"yank_main_selection_to_clipboard"
"normal_mode"
@@ -162,7 +276,11 @@ p = "replace_selections_with_clipboard";
P = "paste_clipboard_before";
{pkgs ? import <nixpkgs> {}}: {
+ C-a = ["append_mode" "collapse_selection"];
+ "collapse_selection"
+ statusline = {
- editor = {
+ "normal_mode"
+ ];
};
};
};
@@ -172,7 +290,11 @@ {
name = "go";
formatter = {
command = "sh";
+ args = [
+ ignore = [".idea/" "result" "node_modules/" "dist/"];
insert = "bar";
+ "set -o pipefail; ${gotools}/bin/goimports | ${gofumpt}/bin/gofumpt"
+ skip-levels = 1;
settings = {
};
}
@@ -181,9 +303,13 @@ name = "python";
auto-format = true;
formatter = with python311Packages; {
command = "${black}/bin/black";
+ ignore = [".idea/" "result" "node_modules/" "dist/"];
{pkgs ? import <nixpkgs> {}}: {
+ ignore = [".idea/" "result" "node_modules/" "dist/"];
{pkgs ? import <nixpkgs> {}}: {
- color-modes = true;
+ settings = {
+ "-"
+ ];
};
}
{
@@ -191,9 +317,8 @@ name = "nix";
auto-format = true;
formatter = {
command = "${nixfmt-rfc-style}/bin/nixfmt";
-{pkgs ? import <nixpkgs> {}}: {
ignore = [".idea/" "result" "node_modules/" "dist/"];
- ignore = [".idea/" "result" "node_modules/" "dist/"];
+ file-picker.hidden = false;
};
}
{
@@ -201,9 +326,8 @@ name = "templ";
auto-format = true;
formatter = {
command = "${templ}/bin/templ";
-{pkgs ? import <nixpkgs> {}}: {
ignore = [".idea/" "result" "node_modules/" "dist/"];
- editor = {
+ indent-guides = {
};
}
{
@@ -216,8 +340,9 @@ name = "dhall";
auto-format = true;
formatter = {
command = "${dhall}/bin/dhall";
+ ignore = [".idea/" "result" "node_modules/" "dist/"];
{pkgs ? import <nixpkgs> {}}: {
- keys = {
+ mouse = false;
};
}
{
@@ -225,48 +350,58 @@ name = "jsonnet";
auto-format = true;
formatter = {
command = "${jsonnet}/bin/jsonnetfmt";
+ ignore = [".idea/" "result" "node_modules/" "dist/"];
{pkgs ? import <nixpkgs> {}}: {
- q = ":quit";
+ bufferline = "always";
};
}
{pkgs ? import <nixpkgs> {}}: {
+ color-modes = true;
+ name = "cooklang";
+ scope = "source.cook";
+ injection-regex = "cook";
+ file-types = [ "cook" ];
+ }
+{pkgs ? import <nixpkgs> {}}: {
Q = ":quit!";
language-server = {
nil.config.nil.nix.flake.autoEvalInputs = true;
gpt = {
command = "${helix-gpt}";
-{pkgs ? import <nixpkgs> {}}: {
+ "version-control"
settings = {
- color-modes = true;
};
};
};
themes = {
catppuccin_frappe_transparent = {
inherits = "catppuccin_frappe";
-{pkgs ? import <nixpkgs> {}}: {
+ "version-control"
theme = "catppuccin_mocha_transparent";
- settings = {
};
catppuccin_latte_transparent = {
inherits = "catppuccin_latte";
-{pkgs ? import <nixpkgs> {}}: {
+ "version-control"
theme = "catppuccin_mocha_transparent";
- settings = {
};
catppuccin_macchiato_transparent = {
inherits = "catppuccin_macchiato";
-{pkgs ? import <nixpkgs> {}}: {
+ "version-control"
theme = "catppuccin_mocha_transparent";
- settings = {
};
catppuccin_mocha_transparent = {
inherits = "catppuccin_mocha";
-{pkgs ? import <nixpkgs> {}}: {
+ "version-control"
theme = "catppuccin_mocha_transparent";
- settings = {
};
};
grammars = [
+ {
+ name = "cooklang";
+ url = "https://github.com/jolheiser/tree-sitter-cooklang";
+ rev = "a87b94729c0e4276a3e7b9fdccf497c268a2e1b8";
+ sha256 = "sha256-j6WD1+WVTLlq0x0WkFWWR8JHYk2jObSRDNEz6SUWovw=";
+ queries = "queries";
+ }
];
}