mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	doc: fix un-buildable example code in pure lua config section
The example code references an invalid nvf option: `vim.additionalRuntimeDirectories`. The correct option is `vim.additionalRuntimePaths`.
This commit is contained in:
		
					parent
					
						
							
								5bad5dd94c
							
						
					
				
			
			
				commit
				
					
						398b845655
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -23,7 +23,7 @@ manner. | ||||||
|   # flake.nix. For the sake of the argument, we will assume that the Neovim lua |   # flake.nix. For the sake of the argument, we will assume that the Neovim lua | ||||||
|   # configuration is in a nvim/ directory relative to flake.nix. |   # configuration is in a nvim/ directory relative to flake.nix. | ||||||
|   vim = { |   vim = { | ||||||
|     additionalRuntimeDirectories = [ |     additionalRuntimePaths = [ | ||||||
|       # This will be added to Neovim's runtime paths. Conceptually, this behaves |       # This will be added to Neovim's runtime paths. Conceptually, this behaves | ||||||
|       # very similarly to ~/.config/nvim but you may not place a top-level |       # very similarly to ~/.config/nvim but you may not place a top-level | ||||||
|       # init.lua to be able to require it directly. |       # init.lua to be able to require it directly. | ||||||
|  | @ -41,7 +41,7 @@ directory, and call it with [](#opt-vim.luaConfigRC). | ||||||
| ```nix | ```nix | ||||||
| {pkgs, ...}: { | {pkgs, ...}: { | ||||||
|   vim = { |   vim = { | ||||||
|     additionalRuntimeDirectories = [ |     additionalRuntimePaths = [ | ||||||
|       # You can list more than one file here. |       # You can list more than one file here. | ||||||
|       ./nvim-custom-1 |       ./nvim-custom-1 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 vai
				vai