mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	treesitter: mention builtGrammars in grammars option
This commit is contained in:
		
					parent
					
						
							
								68346ebede
							
						
					
				
			
			
				commit
				
					
						072f7599ae
					
				
			
		
					 1 changed files with 11 additions and 4 deletions
				
			
		|  | @ -24,12 +24,19 @@ in { | ||||||
|     grammars = mkOption { |     grammars = mkOption { | ||||||
|       type = listOf package; |       type = listOf package; | ||||||
|       default = []; |       default = []; | ||||||
|  |       example = literalExpression '' | ||||||
|  |         pkgs.vimPlugins.nvim-treesitter.builtGrammars; [ | ||||||
|  |           regex | ||||||
|  |           kdl | ||||||
|  |         ]; | ||||||
|  |       ''; | ||||||
|       description = '' |       description = '' | ||||||
|         List of treesitter grammars to install. |         List of treesitter grammars to install. For grammars to be installed properly, | ||||||
|  |         you must use grammars from `pkgs.vimPlugins.nvim-treesitter.builtGrammars`. | ||||||
| 
 | 
 | ||||||
|         For languages already supported by nvf, you may |         For languages already supported by nvf, you may use | ||||||
|         use the {option}`vim.language.<lang>.treesitter` options, which |         {option}`vim.language.<lang>.treesitter` options, which will automatically add | ||||||
|         will automatically add the required grammars to this. |         the required grammars to this. | ||||||
|       ''; |       ''; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue