programs.gram.enable
Whether to enable Gram.
Type: boolean
Default:
false
Example:
true
Declared by:
programs.gram.package
The gram package to use.
Type: null or package
Default:
pkgs.gram
Declared by:
programs.gram.debugger
List of debug tasks to write to debug.jsonc.
Type: (list of (JSON value)) or strings concatenated with “\n”
Default:
[ ]
Example:
[
{
adapter = "Example adapter name";
cwd = "$GRAM_WORKTREE_ROOT";
label = "Example Start debugger config";
program = "path_to_program";
request = "launch";
}
]
Declared by:
programs.gram.extensionPackages
List of extension packages to install.
See also:
- https://codeberg.org/niklaskorz/nix-gram-extensions
- https://github.com/DuskSystems/nix-zed-extensions
Type: list of package
Default:
[ ]
Example:
with gram-extensions; [ catppuccin ]
Declared by:
programs.gram.extraPackages
List of extra packages available to Gram.
Type: list of package
Default:
[ ]
Example:
with pkgs; [ nil ]
Declared by:
programs.gram.keymaps
List of key bindings to write to keymap.jsonc.
Type: (list of (JSON value)) or strings concatenated with “\n”
Default:
[ ]
Example:
[
{
bindings = {
ctrl-left = "editor::SelectSmallerSyntaxNode";
ctrl-right = "editor::SelectLargerSyntaxNode";
};
}
{
bindings = {
o = "project_panel::Open";
};
context = "ProjectPanel && not_editing";
}
]
Declared by:
programs.gram.settings
Set of settings to write to settings.jsonc.
Type: (attribute set of (JSON value)) or strings concatenated with “\n”
Default:
{ }
Example:
{
buffer_font_family = "JetBrains Mono";
buffer_font_size = 14;
buffer_font_weight = 400;
}
Declared by:
programs.gram.snippets
Set of snippets to write to snippets/‹name›.json.
Type: attribute set of ((attribute set of (JSON value)) or strings concatenated with “\n”)
Default:
{ }
Example:
{
html = {
"Define doctype" = {
body = [
"<!DOCTYPE>"
"$1"
];
description = "Defines the document type";
prefix = "doctype";
};
};
javascript = {
"Log to console" = {
body = [
"console.info(\"Hello, \${1:World}!\")"
"$0"
];
description = "Logs to console";
prefix = "log";
};
};
}
Declared by:
programs.gram.tasks
List of tasks to write to tasks.jsonc.
Type: (list of (JSON value)) or strings concatenated with “\n”
Default:
[ ]
Example:
[
{
allow_concurrent_runs = false;
command = "for i in {1..5}; do echo \"Hello $i/5\"; sleep 1; done";
env = {
foo = "bar";
};
hide = "never";
label = "Example task";
reveal = "always";
save = "none";
shell = "system";
show_command = true;
show_summary = true;
use_new_terminal = false;
}
]
Declared by:
programs.gram.themes
Set of local themes to write to themes/‹name›.json.
Type: attribute set of ((attribute set of (JSON value)) or strings concatenated with “\n”)
Default:
{ }
Example:
{
my-cool-theme = {
name = "My Cool Theme";
author = "You!";
themes = [
{
name = "My Cool Dark Theme";
appearance = "dark";
style = {
"editor.background" = "#000";
# ...
};
}
{
name = "My Cool Light Theme";
appearance = "light";
style = {
"editor.background" = "#fff";
# ...
};
}
];
};
}
Declared by: