mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	notes/norg: fix broken grammars and add norg-meta
This commit is contained in:
		
					parent
					
						
							
								08bbe92532
							
						
					
				
			
			
				commit
				
					
						28f4237e4f
					
				
			
		
					 2 changed files with 9 additions and 4 deletions
				
			
		|  | @ -35,7 +35,7 @@ in { | |||
| 
 | ||||
|     (mkIf cfg.treesitter.enable { | ||||
|       vim.treesitter.enable = true; | ||||
|       vim.treesitter.grammars = [cfg.treesitter.norgPackage]; | ||||
|       vim.treesitter.grammars = [cfg.treesitter.norgPackage cfg.treesitter.norgMetaPackage]; | ||||
|     }) | ||||
|   ]); | ||||
| } | ||||
|  |  | |||
|  | @ -4,9 +4,9 @@ | |||
|   pkgs, | ||||
|   ... | ||||
| }: let | ||||
|   inherit (lib.options) mkEnableOption mkOption; | ||||
|   inherit (lib.options) mkPackageOption mkEnableOption mkOption; | ||||
|   inherit (lib.types) submodule listOf str; | ||||
|   inherit (lib.nvim.types) mkGrammarOption mkPluginSetupOption; | ||||
|   inherit (lib.nvim.types) mkPluginSetupOption; | ||||
| in { | ||||
|   options.vim.notes.neorg = { | ||||
|     enable = mkEnableOption '' | ||||
|  | @ -44,7 +44,12 @@ in { | |||
| 
 | ||||
|     treesitter = { | ||||
|       enable = mkEnableOption "Neorg treesitter" // {default = config.vim.languages.enableTreesitter;}; | ||||
|       norgPackage = mkGrammarOption pkgs "norg"; | ||||
|       norgPackage= mkPackageOption pkgs ["norg-meta treesitter"] { | ||||
|         default = ["tree-sitter-grammars" "tree-sitter-norg"]; | ||||
|       }; | ||||
|       norgMetaPackage = mkPackageOption pkgs ["norg-meta treesitter"] { | ||||
|         default = ["tree-sitter-grammars" "tree-sitter-norg-meta"]; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Francesco Prem Solidoro
				Francesco Prem Solidoro