Compare commits

..

3 commits

Author SHA1 Message Date
diniamo
395ac58a80
Merge 55cdd6db48 into eb037b7bff 2024-09-14 16:38:51 +00:00
diniamo
55cdd6db48 configuration: enable nu for maximal 2024-09-14 18:38:46 +02:00
diniamo
cb0f831efd modules/languages: add nu 2024-09-14 18:38:46 +02:00

View file

@ -67,8 +67,22 @@ in {
treesitter = {
enable = mkEnableOption "Nu treesitter" // {default = config.vim.languages.enableTreesitter;};
package = mkPackageOption pkgs ["nu treesitter"] {
default = ["tree-sitter-grammars" "tree-sitter-nu"];
package = mkOption {
description = "The Nu treesitter package to use.";
type = package;
# FIX: this doesn't work, unofficial grammars probably need some extra lua code
default = pkgs.tree-sitter.buildGrammar {
language = "nu";
version = "0.0.0+rev=0bb9a60";
src = fetchFromGitHub {
owner = "nushell";
repo = "tree-sitter-nu";
rev = "0bb9a602d9bc94b66fab96ce51d46a5a227ab76c";
hash = "sha256-A5GiOpITOv3H0wytCv6t43buQ8IzxEXrk3gTlOrO0K0=";
};
meta.homepage = "https://github.com/nushell/tree-sitter-nu";
};
defaultText = "See code";
};
};