mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-01 07:32:24 +00:00
Compare commits
2 commits
55cdd6db48
...
c3dd3efd12
Author | SHA1 | Date | |
---|---|---|---|
|
c3dd3efd12 | ||
|
f196d2d620 |
1 changed files with 2 additions and 16 deletions
|
@ -67,22 +67,8 @@ in {
|
||||||
|
|
||||||
treesitter = {
|
treesitter = {
|
||||||
enable = mkEnableOption "Nu treesitter" // {default = config.vim.languages.enableTreesitter;};
|
enable = mkEnableOption "Nu treesitter" // {default = config.vim.languages.enableTreesitter;};
|
||||||
package = mkOption {
|
package = mkPackageOption pkgs ["nu treesitter"] {
|
||||||
description = "The Nu treesitter package to use.";
|
default = ["tree-sitter-grammars" "tree-sitter-nu"];
|
||||||
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