mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +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: | ||||
|     mkPackageOption pkgs ["${grammar} treesitter"] { | ||||
|       default = ["vimPlugins" "nvim-treesitter" "builtGrammars" grammar]; | ||||
|       default = ["tree-sitter-grammars" grammar]; | ||||
|     }; | ||||
| in { | ||||
|   inherit diagnostics diagnosticSubmodule mkGrammarOption; | ||||
|  |  | |||
|  | @ -21,7 +21,7 @@ | |||
|   pluginType = nullOr ( | ||||
|     either | ||||
|     package | ||||
|     (enum (pluginInputNames ++ ["nvim-treesitter" "flutter-tools-patched" "vim-repeat"])) | ||||
|     (enum (pluginInputNames ++ ["tree-sitter-grammars" "flutter-tools-patched" "vim-repeat"])) | ||||
|   ); | ||||
| 
 | ||||
|   pluginsType = listOf pluginType; | ||||
|  |  | |||
|  | @ -164,7 +164,7 @@ in { | |||
|       package = mkOption { | ||||
|         description = "Python treesitter grammar to use"; | ||||
|         type = package; | ||||
|         default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.python; | ||||
|         default = pkgs.tree-sitter-grammars.tree-sitter-python; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -74,7 +74,7 @@ in { | |||
|       package = mkOption { | ||||
|         description = "SQL treesitter grammar to use"; | ||||
|         type = package; | ||||
|         default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.sql; | ||||
|         default = pkgs.tree-sitter-grammars.tree-sitter-sql; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -44,7 +44,7 @@ in { | |||
| 
 | ||||
|     treesitter = { | ||||
|       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; | ||||
|       default = []; | ||||
|       example = literalExpression '' | ||||
|         pkgs.vimPlugins.nvim-treesitter.builtGrammars; [ | ||||
|           regex | ||||
|           kdl | ||||
|         pkgs.tree-sitter-grammars; [ | ||||
|           tree-sitter-regex | ||||
|           tree-sitter-kdl | ||||
|         ]; | ||||
|       ''; | ||||
|       description = '' | ||||
|         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 | ||||
|         {option}`vim.language.<lang>.treesitter` options, which will automatically add | ||||
|  | @ -55,7 +55,7 @@ in { | |||
|       internal = true; | ||||
|       readOnly = true; | ||||
|       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 = '' | ||||
|         A list of treesitter grammars that will be installed by default | ||||
|         if treesitter has been enabled and  {option}`vim.treeesitter.addDefaultGrammars` | ||||
|  |  | |||
|  | @ -12,7 +12,7 @@ | |||
|   cfg = config.vim.ui.noice; | ||||
|   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 { | ||||
|   config = mkIf cfg.enable { | ||||
|     vim = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Chandler
				Chandler