mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	Merge eec2d4a8ef into 3c4360b222
		
	This commit is contained in:
		
				commit
				
					
						532be946f4
					
				
			
		
					 7 changed files with 11 additions and 11 deletions
				
			
		|  | @ -30,7 +30,7 @@ | ||||||
| 
 | 
 | ||||||
|   mkGrammarOption = pkgs: grammar: |   mkGrammarOption = pkgs: grammar: | ||||||
|     mkPackageOption pkgs ["${grammar} treesitter"] { |     mkPackageOption pkgs ["${grammar} treesitter"] { | ||||||
|       default = ["vimPlugins" "nvim-treesitter" "builtGrammars" grammar]; |       default = ["tree-sitter-grammars" grammar]; | ||||||
|     }; |     }; | ||||||
| in { | in { | ||||||
|   inherit diagnostics diagnosticSubmodule mkGrammarOption; |   inherit diagnostics diagnosticSubmodule mkGrammarOption; | ||||||
|  |  | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
|   pluginType = nullOr ( |   pluginType = nullOr ( | ||||||
|     either |     either | ||||||
|     package |     package | ||||||
|     (enum (pluginInputNames ++ ["nvim-treesitter" "flutter-tools-patched" "vim-repeat"])) |     (enum (pluginInputNames ++ ["tree-sitter-grammars" "flutter-tools-patched" "vim-repeat"])) | ||||||
|   ); |   ); | ||||||
| 
 | 
 | ||||||
|   pluginsType = listOf pluginType; |   pluginsType = listOf pluginType; | ||||||
|  |  | ||||||
|  | @ -164,7 +164,7 @@ in { | ||||||
|       package = mkOption { |       package = mkOption { | ||||||
|         description = "Python treesitter grammar to use"; |         description = "Python treesitter grammar to use"; | ||||||
|         type = package; |         type = package; | ||||||
|         default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.python; |         default = pkgs.tree-sitter-grammars.tree-sitter-python; | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -74,7 +74,7 @@ in { | ||||||
|       package = mkOption { |       package = mkOption { | ||||||
|         description = "SQL treesitter grammar to use"; |         description = "SQL treesitter grammar to use"; | ||||||
|         type = package; |         type = package; | ||||||
|         default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.sql; |         default = pkgs.tree-sitter-grammars.tree-sitter-sql; | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -44,7 +44,7 @@ in { | ||||||
| 
 | 
 | ||||||
|     treesitter = { |     treesitter = { | ||||||
|       enable = mkEnableOption "Neorg treesitter" // {default = config.vim.languages.enableTreesitter;}; |       enable = mkEnableOption "Neorg treesitter" // {default = config.vim.languages.enableTreesitter;}; | ||||||
|       norgPackage = mkGrammarOption pkgs "norg"; |       norgPackage = mkGrammarOption pkgs "tree-sitter-norg"; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -25,14 +25,14 @@ in { | ||||||
|       type = listOf package; |       type = listOf package; | ||||||
|       default = []; |       default = []; | ||||||
|       example = literalExpression '' |       example = literalExpression '' | ||||||
|         pkgs.vimPlugins.nvim-treesitter.builtGrammars; [ |         pkgs.tree-sitter-grammars; [ | ||||||
|           regex |           tree-sitter-regex | ||||||
|           kdl |           tree-sitter-kdl | ||||||
|         ]; |         ]; | ||||||
|       ''; |       ''; | ||||||
|       description = '' |       description = '' | ||||||
|         List of treesitter grammars to install. For grammars to be installed properly, |         List of treesitter grammars to install. For grammars to be installed properly, | ||||||
|         you must use grammars from `pkgs.vimPlugins.nvim-treesitter.builtGrammars`. |         you must use grammars from `pkgs.tree-sitter-grammars`. | ||||||
| 
 | 
 | ||||||
|         For languages already supported by nvf, you may use |         For languages already supported by nvf, you may use | ||||||
|         {option}`vim.language.<lang>.treesitter` options, which will automatically add |         {option}`vim.language.<lang>.treesitter` options, which will automatically add | ||||||
|  | @ -55,7 +55,7 @@ in { | ||||||
|       internal = true; |       internal = true; | ||||||
|       readOnly = true; |       readOnly = true; | ||||||
|       type = listOf package; |       type = listOf package; | ||||||
|       default = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [c lua vim vimdoc query]; |       default = with pkgs.tree-sitter-grammars; [tree-sitter-c tree-sitter-lua tree-sitter-vim]; | ||||||
|       description = '' |       description = '' | ||||||
|         A list of treesitter grammars that will be installed by default |         A list of treesitter grammars that will be installed by default | ||||||
|         if treesitter has been enabled and  {option}`vim.treeesitter.addDefaultGrammars` |         if treesitter has been enabled and  {option}`vim.treeesitter.addDefaultGrammars` | ||||||
|  |  | ||||||
|  | @ -12,7 +12,7 @@ | ||||||
|   cfg = config.vim.ui.noice; |   cfg = config.vim.ui.noice; | ||||||
|   tscfg = config.vim.treesitter; |   tscfg = config.vim.treesitter; | ||||||
| 
 | 
 | ||||||
|   defaultGrammars = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [vim regex lua bash markdown]; |   defaultGrammars = with pkgs.tree-sitter-grammars; [tree-sitter-vim tree-sitter-regex tree-sitter-lua tree-sitter-bash tree-sitter-markdown]; | ||||||
| in { | in { | ||||||
|   config = mkIf cfg.enable { |   config = mkIf cfg.enable { | ||||||
|     vim = { |     vim = { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Chandler
				Chandler