mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-12-28 05:32:23 +00:00
Compare commits
2 commits
c3dd3efd12
...
55cdd6db48
Author | SHA1 | Date | |
---|---|---|---|
|
55cdd6db48 | ||
|
cb0f831efd |
1 changed files with 16 additions and 2 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue