mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	flake: update mnw (#723)
This commit is contained in:
		
					parent
					
						
							
								93d375af64
							
						
					
				
			
			
				commit
				
					
						a297acc368
					
				
			
		
					 2 changed files with 15 additions and 15 deletions
				
			
		
							
								
								
									
										6
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							|  | @ -38,11 +38,11 @@ | ||||||
|     }, |     }, | ||||||
|     "mnw": { |     "mnw": { | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1741647548, |         "lastModified": 1742255973, | ||||||
|         "narHash": "sha256-UqVAeOylufUGIx7BXSneFHD8eI6n0sVwEY2noFENnSE=", |         "narHash": "sha256-XfEGVKatTgEMMOVb4SNp1LYLQOSzzrFTDMVDTZFyMVE=", | ||||||
|         "owner": "Gerg-L", |         "owner": "Gerg-L", | ||||||
|         "repo": "mnw", |         "repo": "mnw", | ||||||
|         "rev": "3fb89e600e26b91d1795cf8a1a34e11e084b4a04", |         "rev": "b982dbd5e6d55d4438832b3567c09bc2a129649d", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  |  | ||||||
|  | @ -6,9 +6,8 @@ | ||||||
|   ... |   ... | ||||||
| }: let | }: let | ||||||
|   inherit (pkgs) vimPlugins; |   inherit (pkgs) vimPlugins; | ||||||
|   inherit (lib.strings) isString; |   inherit (lib.trivial) flip; | ||||||
|   inherit (lib.lists) filter map; |   inherit (builtins) path filter isString; | ||||||
|   inherit (builtins) path; |  | ||||||
| 
 | 
 | ||||||
|   getPin = name: ((pkgs.callPackages ../../../npins/sources.nix {}) // config.vim.pluginOverrides).${name}; |   getPin = name: ((pkgs.callPackages ../../../npins/sources.nix {}) // config.vim.pluginOverrides).${name}; | ||||||
| 
 | 
 | ||||||
|  | @ -76,13 +75,6 @@ | ||||||
|     buildConfigPlugins config.vim.optPlugins |     buildConfigPlugins config.vim.optPlugins | ||||||
|   ); |   ); | ||||||
| 
 | 
 | ||||||
|   # additional Lua and Python3 packages, mapped to their respective functions |  | ||||||
|   # to conform to the format mnw expects. end user should |  | ||||||
|   # only ever need to pass a list of packages, which are modified |  | ||||||
|   # here |  | ||||||
|   extraLuaPackages = ps: map (x: ps.${x}) config.vim.luaPackages; |  | ||||||
|   extraPython3Packages = ps: map (x: ps.${x}) config.vim.python3Packages; |  | ||||||
| 
 |  | ||||||
|   # Wrap the user's desired (unwrapped) Neovim package with arguments that'll be used to |   # Wrap the user's desired (unwrapped) Neovim package with arguments that'll be used to | ||||||
|   # generate a wrapped Neovim package. |   # generate a wrapped Neovim package. | ||||||
|   neovim-wrapped = inputs.mnw.lib.wrap pkgs { |   neovim-wrapped = inputs.mnw.lib.wrap pkgs { | ||||||
|  | @ -92,9 +84,17 @@ | ||||||
|     extraBinPath = config.vim.extraPackages; |     extraBinPath = config.vim.extraPackages; | ||||||
|     initLua = config.vim.builtLuaConfigRC; |     initLua = config.vim.builtLuaConfigRC; | ||||||
|     luaFiles = config.vim.extraLuaFiles; |     luaFiles = config.vim.extraLuaFiles; | ||||||
|  |     providers = { | ||||||
|  |       python3 = { | ||||||
|  |         enable = config.vim.withPython3; | ||||||
|  |         extraPackages = ps: map (flip builtins.getAttr ps) config.vim.python3Packages; | ||||||
|  |       }; | ||||||
|  |       ruby.enable = config.vim.withRuby; | ||||||
|  |       nodeJs.enable = config.vim.withNodeJs; | ||||||
|  |     }; | ||||||
|  |     aliases = lib.optional config.vim.viAlias "vi" ++ lib.optional config.vim.vimAlias "vim"; | ||||||
| 
 | 
 | ||||||
|     inherit (config.vim) viAlias vimAlias withRuby withNodeJs withPython3; |     extraLuaPackages = ps: map (flip builtins.getAttr ps) config.vim.luaPackages; | ||||||
|     inherit extraLuaPackages extraPython3Packages; |  | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   dummyInit = pkgs.writeText "nvf-init.lua" config.vim.builtLuaConfigRC; |   dummyInit = pkgs.writeText "nvf-init.lua" config.vim.builtLuaConfigRC; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gerg-L
				Gerg-L