mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-12-28 21:52:22 +00:00
Compare commits
3 commits
aca95b8f79
...
395ac58a80
Author | SHA1 | Date | |
---|---|---|---|
|
395ac58a80 | ||
|
55cdd6db48 | ||
|
cb0f831efd |
1 changed files with 16 additions and 2 deletions
|
@ -67,8 +67,22 @@ in {
|
||||||
|
|
||||||
treesitter = {
|
treesitter = {
|
||||||
enable = mkEnableOption "Nu treesitter" // {default = config.vim.languages.enableTreesitter;};
|
enable = mkEnableOption "Nu treesitter" // {default = config.vim.languages.enableTreesitter;};
|
||||||
package = mkPackageOption pkgs ["nu treesitter"] {
|
package = mkOption {
|
||||||
default = ["tree-sitter-grammars" "tree-sitter-nu"];
|
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