mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	treewide: move from 'with lib' to 'inherit (lib) ...'
This commit is contained in:
		
					parent
					
						
							
								3fde6a4bf3
							
						
					
				
			
			
				commit
				
					
						ffa25c8c8a
					
				
			
		
					 90 changed files with 281 additions and 273 deletions
				
			
		|  | @ -2,9 +2,9 @@ | |||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with builtins; let | ||||
| }: let | ||||
|   inherit (lib) mkIf nvim; | ||||
| 
 | ||||
|   cfg = config.vim.notes.mind-nvim; | ||||
| in { | ||||
|   config = mkIf (cfg.enable) { | ||||
|  |  | |||
|  | @ -2,9 +2,9 @@ | |||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with builtins; { | ||||
| }: let | ||||
|   inherit (lib) mkEnableOption; | ||||
| in { | ||||
|   options.vim.notes.mind-nvim = { | ||||
|     enable = mkEnableOption "organizer tool for Neovim."; | ||||
|   }; | ||||
|  |  | |||
|  | @ -2,9 +2,9 @@ | |||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with builtins; let | ||||
| }: let | ||||
|   inherit (lib) mkIf nvim; | ||||
| 
 | ||||
|   cfg = config.vim.notes.obsidian; | ||||
|   auto = config.vim.autocomplete; | ||||
| in { | ||||
|  |  | |||
|  | @ -2,9 +2,9 @@ | |||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with builtins; { | ||||
| }: let | ||||
|   inherit (lib) mkEnableOption mkOption types; | ||||
| in { | ||||
|   options.vim.notes = { | ||||
|     obsidian = { | ||||
|       enable = mkEnableOption "complementary neovim plugins for Obsidian editor"; | ||||
|  |  | |||
|  | @ -2,9 +2,9 @@ | |||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with builtins; let | ||||
| }: let | ||||
|   inherit (lib) mkIf mkMerge nvim; | ||||
| 
 | ||||
|   cfg = config.vim.notes.orgmode; | ||||
| in { | ||||
|   config = mkIf cfg.enable (mkMerge [ | ||||
|  |  | |||
|  | @ -3,9 +3,9 @@ | |||
|   lib, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with builtins; { | ||||
| }: let | ||||
|   inherit (lib) mkEnableOption types mkOption nvim; | ||||
| in { | ||||
|   options.vim.notes.orgmode = { | ||||
|     enable = mkEnableOption "nvim-orgmode: Neovim plugin for Emac Orgmode. Get the best of both worlds"; | ||||
| 
 | ||||
|  |  | |||
|  | @ -3,9 +3,9 @@ | |||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with builtins; let | ||||
| }: let | ||||
|   inherit (lib) mkMerge mkBinding mkIf; | ||||
| 
 | ||||
|   cfg = config.vim.notes.todo-comments; | ||||
|   self = import ./todo-comments.nix {inherit lib;}; | ||||
|   mappings = self.options.vim.notes.todo-comments.mappings; | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| {lib, ...}: | ||||
| with lib; | ||||
| with builtins; { | ||||
| {lib, ...}: let | ||||
|   inherit (lib) mkEnableOption mkOption types mkMappingOption; | ||||
| in { | ||||
|   options.vim.notes.todo-comments = { | ||||
|     enable = mkEnableOption "todo-comments: highlight and search for todo comments like TODO, HACK, BUG in your code base"; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Frothy
				Frothy