mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	languages: move to mkGrammarOption in remaining languages
This commit is contained in:
		
					parent
					
						
							
								d47a771d19
							
						
					
				
			
			
				commit
				
					
						adfb0d1fec
					
				
			
		
					 3 changed files with 4 additions and 14 deletions
				
			
		|  | @ -12,7 +12,7 @@ | |||
|   inherit (lib.nvim.attrsets) mapListToAttrs; | ||||
|   inherit (lib.generators) mkLuaInline; | ||||
|   inherit (lib.nvim.dag) entryBefore; | ||||
|   inherit (lib.nvim.types) mkServersOption; | ||||
|   inherit (lib.nvim.types) mkGrammarOption mkServersOption; | ||||
| 
 | ||||
|   cfg = config.vim.languages.python; | ||||
| 
 | ||||
|  | @ -219,11 +219,7 @@ in { | |||
| 
 | ||||
|     treesitter = { | ||||
|       enable = mkEnableOption "Python treesitter" // {default = config.vim.languages.enableTreesitter;}; | ||||
|       package = mkOption { | ||||
|         description = "Python treesitter grammar to use"; | ||||
|         type = package; | ||||
|         default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.python; | ||||
|       }; | ||||
|       package = mkGrammarOption pkgs "python"; | ||||
|     }; | ||||
| 
 | ||||
|     lsp = { | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ | |||
|   inherit (lib.meta) getExe; | ||||
|   inherit (lib.modules) mkIf mkMerge; | ||||
|   inherit (lib.types) enum listOf package str; | ||||
|   inherit (lib.nvim.types) diagnostics mkServersOption; | ||||
|   inherit (lib.nvim.types) diagnostics mkGrammarOption mkServersOption; | ||||
|   inherit (lib.nvim.attrsets) mapListToAttrs; | ||||
|   inherit (lib.generators) mkLuaInline; | ||||
| 
 | ||||
|  | @ -66,12 +66,7 @@ in { | |||
| 
 | ||||
|     treesitter = { | ||||
|       enable = mkEnableOption "SQL treesitter" // {default = config.vim.languages.enableTreesitter;}; | ||||
| 
 | ||||
|       package = mkOption { | ||||
|         type = package; | ||||
|         default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.sql; | ||||
|         description = "SQL treesitter grammar to use"; | ||||
|       }; | ||||
|       package = mkGrammarOption pkgs "sql"; | ||||
|     }; | ||||
| 
 | ||||
|     lsp = { | ||||
|  |  | |||
|  | @ -49,7 +49,6 @@ in { | |||
| 
 | ||||
|     treesitter = { | ||||
|       enable = mkEnableOption "YAML treesitter" // {default = config.vim.languages.enableTreesitter;}; | ||||
| 
 | ||||
|       package = mkGrammarOption pkgs "yaml"; | ||||
|     }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 poz
				poz