mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	clean up lib
This commit is contained in:
		
					parent
					
						
							
								89c0cc0373
							
						
					
				
			
			
				commit
				
					
						c97a621b71
					
				
			
		
					 7 changed files with 12 additions and 55 deletions
				
			
		|  | @ -33,7 +33,9 @@ | ||||||
|         }; |         }; | ||||||
| 
 | 
 | ||||||
|         nixosModules.default = { |         nixosModules.default = { | ||||||
|           home-manager.sharedModules = [./lib/hm-module.nix]; |           home-manager.sharedModules = [ | ||||||
|  |             ./lib/module | ||||||
|  |           ]; | ||||||
|           nixpkgs.overlays = [ |           nixpkgs.overlays = [ | ||||||
|             inputs.tidalcycles.overlays.default |             inputs.tidalcycles.overlays.default | ||||||
|             inputs.self.overlays.default |             inputs.self.overlays.default | ||||||
|  | @ -42,7 +44,7 @@ | ||||||
| 
 | 
 | ||||||
|         homeManagerModules.default = { |         homeManagerModules.default = { | ||||||
|           imports = [ |           imports = [ | ||||||
|             ./lib/hm-module.nix |             ./lib/module | ||||||
|           ]; |           ]; | ||||||
|         }; |         }; | ||||||
|       }; |       }; | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {lib}: { | {lib}: { | ||||||
|   dag = import ./dag.nix {inherit lib;}; |   dag = import ./dag.nix {inherit lib;}; | ||||||
|   booleans = import ./booleans.nix {inherit lib;}; |   booleans = import ./booleans.nix {inherit lib;}; | ||||||
|   types = import ./types.nix {inherit lib;}; |   types = import ./types {inherit lib;}; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -1,45 +0,0 @@ | ||||||
| # Home Manager module |  | ||||||
| { |  | ||||||
|   self, |  | ||||||
|   config, |  | ||||||
|   pkgs, |  | ||||||
|   lib ? pkgs.lib, |  | ||||||
|   ... |  | ||||||
| }: let |  | ||||||
|   cfg = config.programs.neovim-flake; |  | ||||||
|   set = self.packages.neovim-maximal {mainConfig = cfg.settings;}; |  | ||||||
| in |  | ||||||
|   with lib; { |  | ||||||
|     meta.maintainers = [maintainers.notashelf]; |  | ||||||
| 
 |  | ||||||
|     options.programs.neovim-flake = { |  | ||||||
|       enable = mkEnableOption "A NeoVim IDE with a focus on configurability and extensibility."; |  | ||||||
| 
 |  | ||||||
|       settings = mkOption { |  | ||||||
|         type = types.attrsOf types.anything; |  | ||||||
|         default = {}; |  | ||||||
|         example = literalExpression '' |  | ||||||
|           { |  | ||||||
|             vim.viAlias = false; |  | ||||||
|             vim.vimAlias = true; |  | ||||||
|             vim.lsp = { |  | ||||||
|               enable = true; |  | ||||||
|               formatOnSave = true; |  | ||||||
|               lightbulb.enable = true; |  | ||||||
|               lspsaga.enable = false; |  | ||||||
|               nvimCodeActionMenu.enable = true; |  | ||||||
|               trouble.enable = true; |  | ||||||
|               lspSignature.enable = true; |  | ||||||
|               rust.enable = false; |  | ||||||
|               nix = true; |  | ||||||
|             }; |  | ||||||
|           } |  | ||||||
|         ''; |  | ||||||
|         description = "Attribute set of neoflake preferences."; |  | ||||||
|       }; |  | ||||||
|     }; |  | ||||||
| 
 |  | ||||||
|     config = mkIf cfg.enable { |  | ||||||
|       home.packages = [set.neovim]; |  | ||||||
|     }; |  | ||||||
|   } |  | ||||||
|  | @ -1,7 +0,0 @@ | ||||||
| {lib}: let |  | ||||||
|   typesDag = import ./types-dag.nix {inherit lib;}; |  | ||||||
|   typesPlugin = import ./types-plugin.nix {inherit lib;}; |  | ||||||
| in { |  | ||||||
|   inherit (typesDag) dagOf; |  | ||||||
|   inherit (typesPlugin) pluginsOpt; |  | ||||||
| } |  | ||||||
							
								
								
									
										7
									
								
								lib/types/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								lib/types/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | ||||||
|  | {lib}: let | ||||||
|  |   typesDag = import ./dag.nix {inherit lib;}; | ||||||
|  |   typesPlugin = import ./plugins.nix {inherit lib;}; | ||||||
|  | in { | ||||||
|  |   inherit (typesDag) dagOf; | ||||||
|  |   inherit (typesPlugin) pluginsOpt; | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 NotAShelf
				NotAShelf