mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-03 20:19:19 +00:00
27 lines
606 B
Nix
27 lines
606 B
Nix
{
|
|
programs.gram = {
|
|
enable = true;
|
|
|
|
snippets = {
|
|
global = { };
|
|
jsx = { };
|
|
plain = { };
|
|
};
|
|
};
|
|
|
|
test.asserts.assertions.expected =
|
|
let
|
|
mkExpectedAssertion = scope: substitute: ''
|
|
The snippet scope defined at `programs.gram.snippets.${scope}` is incorrect,
|
|
use `programs.gram.snippets.${substitute}` instead.
|
|
|
|
(reasoning: <https://gram-editor.com/docs/snippets/>)
|
|
'';
|
|
in
|
|
[
|
|
(mkExpectedAssertion "global" "snippets")
|
|
(mkExpectedAssertion "jsx" "javascript")
|
|
(mkExpectedAssertion "plain" "plaintext")
|
|
];
|
|
}
|