mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02: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.nvim.attrsets) mapListToAttrs; | ||||||
|   inherit (lib.generators) mkLuaInline; |   inherit (lib.generators) mkLuaInline; | ||||||
|   inherit (lib.nvim.dag) entryBefore; |   inherit (lib.nvim.dag) entryBefore; | ||||||
|   inherit (lib.nvim.types) mkServersOption; |   inherit (lib.nvim.types) mkGrammarOption mkServersOption; | ||||||
| 
 | 
 | ||||||
|   cfg = config.vim.languages.python; |   cfg = config.vim.languages.python; | ||||||
| 
 | 
 | ||||||
|  | @ -219,11 +219,7 @@ in { | ||||||
| 
 | 
 | ||||||
|     treesitter = { |     treesitter = { | ||||||
|       enable = mkEnableOption "Python treesitter" // {default = config.vim.languages.enableTreesitter;}; |       enable = mkEnableOption "Python treesitter" // {default = config.vim.languages.enableTreesitter;}; | ||||||
|       package = mkOption { |       package = mkGrammarOption pkgs "python"; | ||||||
|         description = "Python treesitter grammar to use"; |  | ||||||
|         type = package; |  | ||||||
|         default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.python; |  | ||||||
|       }; |  | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     lsp = { |     lsp = { | ||||||
|  |  | ||||||
|  | @ -9,7 +9,7 @@ | ||||||
|   inherit (lib.meta) getExe; |   inherit (lib.meta) getExe; | ||||||
|   inherit (lib.modules) mkIf mkMerge; |   inherit (lib.modules) mkIf mkMerge; | ||||||
|   inherit (lib.types) enum listOf package str; |   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.nvim.attrsets) mapListToAttrs; | ||||||
|   inherit (lib.generators) mkLuaInline; |   inherit (lib.generators) mkLuaInline; | ||||||
| 
 | 
 | ||||||
|  | @ -66,12 +66,7 @@ in { | ||||||
| 
 | 
 | ||||||
|     treesitter = { |     treesitter = { | ||||||
|       enable = mkEnableOption "SQL treesitter" // {default = config.vim.languages.enableTreesitter;}; |       enable = mkEnableOption "SQL treesitter" // {default = config.vim.languages.enableTreesitter;}; | ||||||
| 
 |       package = mkGrammarOption pkgs "sql"; | ||||||
|       package = mkOption { |  | ||||||
|         type = package; |  | ||||||
|         default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.sql; |  | ||||||
|         description = "SQL treesitter grammar to use"; |  | ||||||
|       }; |  | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     lsp = { |     lsp = { | ||||||
|  |  | ||||||
|  | @ -49,7 +49,6 @@ in { | ||||||
| 
 | 
 | ||||||
|     treesitter = { |     treesitter = { | ||||||
|       enable = mkEnableOption "YAML treesitter" // {default = config.vim.languages.enableTreesitter;}; |       enable = mkEnableOption "YAML treesitter" // {default = config.vim.languages.enableTreesitter;}; | ||||||
| 
 |  | ||||||
|       package = mkGrammarOption pkgs "yaml"; |       package = mkGrammarOption pkgs "yaml"; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 poz
				poz