mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-04 12:42:21 +00:00 
			
		
		
		
	Merge branch 'main' into feature/listof-str-border
This commit is contained in:
		
				commit
				
					
						ff9a93d3ed
					
				
			
		
					 3 changed files with 51 additions and 12 deletions
				
			
		| 
						 | 
					@ -46,8 +46,6 @@ configuration formats.
 | 
				
			||||||
- Fix [](#opt-vim.ui.smartcolumn.setupOpts.custom_colorcolumn) using the wrong
 | 
					- Fix [](#opt-vim.ui.smartcolumn.setupOpts.custom_colorcolumn) using the wrong
 | 
				
			||||||
  type `int` instead of the expected type `string`.
 | 
					  type `int` instead of the expected type `string`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Fix unused src and version attributes in `buildPlug`.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[horriblename](https://github.com/horriblename):
 | 
					[horriblename](https://github.com/horriblename):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Fix broken treesitter-context keybinds in visual mode
 | 
					- Fix broken treesitter-context keybinds in visual mode
 | 
				
			||||||
| 
						 | 
					@ -142,3 +140,11 @@ configuration formats.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Add [neo-tree.nvim] as an alternative file-tree plugin. It will be available
 | 
					- Add [neo-tree.nvim] as an alternative file-tree plugin. It will be available
 | 
				
			||||||
  under `vim.filetree.neo-tree`, similar to nvimtree.
 | 
					  under `vim.filetree.neo-tree`, similar to nvimtree.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Add `print-nvf-config` & `print-nvf-config-path` helper scripts to Neovim
 | 
				
			||||||
 | 
					  closure. Both of those scripts have been automatically added to your PATH upon
 | 
				
			||||||
 | 
					  using neovimConfig or `programs.nvf.enable`.
 | 
				
			||||||
 | 
					  - `print-nvf-config` will display your `init.lua`, in full.
 | 
				
			||||||
 | 
					  - `print-nvf-config-path` will display the path to _a clone_ of your
 | 
				
			||||||
 | 
					    `init.lua`. This is not the path used by the Neovim wrapper, but an
 | 
				
			||||||
 | 
					    identical clone.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										6
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
					@ -69,11 +69,11 @@
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "mnw": {
 | 
					    "mnw": {
 | 
				
			||||||
      "locked": {
 | 
					      "locked": {
 | 
				
			||||||
        "lastModified": 1720927281,
 | 
					        "lastModified": 1721440413,
 | 
				
			||||||
        "narHash": "sha256-4Z2FtCuL0lT+sM2gb1JMcXOUkeYrWeYZjjs1HuVTlOs=",
 | 
					        "narHash": "sha256-PF/FbgCUZ6mQrKp28G2YoVDlSThBy8AxIT9d2Ju3kTY=",
 | 
				
			||||||
        "owner": "Gerg-L",
 | 
					        "owner": "Gerg-L",
 | 
				
			||||||
        "repo": "mnw",
 | 
					        "repo": "mnw",
 | 
				
			||||||
        "rev": "302b18ddb8498aa9a7e0c01f7026e49d545e6898",
 | 
					        "rev": "4ea225024677e7c3a96080af8624fd3aa5dfa1b6",
 | 
				
			||||||
        "type": "github"
 | 
					        "type": "github"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "original": {
 | 
					      "original": {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -36,11 +36,19 @@ inputs: {
 | 
				
			||||||
  buildPlug = {pname, ...} @ attrs: let
 | 
					  buildPlug = {pname, ...} @ attrs: let
 | 
				
			||||||
    src = getAttr ("plugin-" + pname) inputs;
 | 
					    src = getAttr ("plugin-" + pname) inputs;
 | 
				
			||||||
  in
 | 
					  in
 | 
				
			||||||
    pkgs.runCommand "${pname}-${src.shortRev or src.shortDirtyRev or "dirty"}" attrs
 | 
					    pkgs.stdenvNoCC.mkDerivation ({
 | 
				
			||||||
    ''
 | 
					        inherit src;
 | 
				
			||||||
      mkdir -p $out
 | 
					        version = src.shortRev or src.shortDirtyRev or "dirty";
 | 
				
			||||||
      cp -r ${src}/. $out
 | 
					        installPhase = ''
 | 
				
			||||||
    '';
 | 
					          runHook preInstall
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          mkdir -p $out
 | 
				
			||||||
 | 
					          cp -r . $out
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          runHook postInstall
 | 
				
			||||||
 | 
					        '';
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      // attrs);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  noBuildPlug = {pname, ...} @ attrs: let
 | 
					  noBuildPlug = {pname, ...} @ attrs: let
 | 
				
			||||||
    input = getAttr ("plugin-" + pname) inputs;
 | 
					    input = getAttr ("plugin-" + pname) inputs;
 | 
				
			||||||
| 
						 | 
					@ -105,10 +113,35 @@ inputs: {
 | 
				
			||||||
    inherit (vimOptions) viAlias vimAlias withRuby withNodeJs withPython3;
 | 
					    inherit (vimOptions) viAlias vimAlias withRuby withNodeJs withPython3;
 | 
				
			||||||
    inherit extraLuaPackages extraPython3Packages;
 | 
					    inherit extraLuaPackages extraPython3Packages;
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # Additional helper scripts for printing and displaying nvf configuration
 | 
				
			||||||
 | 
					  # in your commandline.
 | 
				
			||||||
 | 
					  printConfig = pkgs.writers.writeDashBin "print-nvf-config" ''
 | 
				
			||||||
 | 
					    cat << EOF
 | 
				
			||||||
 | 
					      ${vimOptions.builtLuaConfigRC}
 | 
				
			||||||
 | 
					    EOF
 | 
				
			||||||
 | 
					  '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  printConfigPath = pkgs.writers.writeDashBin "print-nvf-config-path" ''
 | 
				
			||||||
 | 
					    realpath ${pkgs.writeTextFile {
 | 
				
			||||||
 | 
					      name = "nvf-init.lua";
 | 
				
			||||||
 | 
					      text = vimOptions.builtLuaConfigRC;
 | 
				
			||||||
 | 
					    }}
 | 
				
			||||||
 | 
					  '';
 | 
				
			||||||
in {
 | 
					in {
 | 
				
			||||||
  inherit (module) options config;
 | 
					  inherit (module) options config;
 | 
				
			||||||
  inherit (module._module.args) pkgs;
 | 
					  inherit (module._module.args) pkgs;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # expose wrapped neovim-package
 | 
					  # Expose wrapped neovim-package for userspace
 | 
				
			||||||
  neovim = neovim-wrapped;
 | 
					  # or module consumption.
 | 
				
			||||||
 | 
					  neovim = pkgs.symlinkJoin {
 | 
				
			||||||
 | 
					    name = "nvf-with-helpers";
 | 
				
			||||||
 | 
					    paths = [neovim-wrapped printConfig printConfigPath];
 | 
				
			||||||
 | 
					    postBuild = "echo helpers added";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    meta = {
 | 
				
			||||||
 | 
					      description = "Wrapped version of Neovim with additional helper scripts";
 | 
				
			||||||
 | 
					      mainProgram = "nvim";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue