mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	feat: conditionally add org ts grammar if orgmode is enabled
This commit is contained in:
		
					parent
					
						
							
								f2e93a22c7
							
						
					
				
			
			
				commit
				
					
						1027e6d58f
					
				
			
		
					 1 changed files with 20 additions and 18 deletions
				
			
		|  | @ -29,24 +29,26 @@ in { | ||||||
| 
 | 
 | ||||||
|     grammars = mkOption { |     grammars = mkOption { | ||||||
|       type = with types; listOf package; |       type = with types; listOf package; | ||||||
|       default = with (pkgs.vimPlugins.nvim-treesitter.builtGrammars); [ |       default = with (pkgs.vimPlugins.nvim-treesitter.builtGrammars); | ||||||
|         c |         [ | ||||||
|         cpp |           c | ||||||
|         nix |           cpp | ||||||
|         python |           nix | ||||||
|         rust |           python | ||||||
|         markdown |           rust | ||||||
|         comment |           markdown | ||||||
|         toml |           comment | ||||||
|         make |           toml | ||||||
|         tsx |           make | ||||||
|         html |           tsx | ||||||
|         javascript |           html | ||||||
|         css |           javascript | ||||||
|         graphql |           css | ||||||
|         json |           graphql | ||||||
|         zig |           json | ||||||
|       ]; |           zig | ||||||
|  |         ] | ||||||
|  |         ++ (optional config.vim.notes.orgmode.enable org); # add orgmode grammar if enabled | ||||||
|       description = '' |       description = '' | ||||||
|         List of treesitter grammars to install. |         List of treesitter grammars to install. | ||||||
|         When enabling a language, its treesitter grammar is added for you. |         When enabling a language, its treesitter grammar is added for you. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 NotAShelf
				NotAShelf