mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	wrapper/rc: explicitly add tabstop & shiftwidth to vim.options
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Set up binary cache / cachix (default) (push) Has been cancelled
				
			
		
			
				
	
				Set up binary cache / cachix (maximal) (push) Has been cancelled
				
			
		
			
				
	
				Set up binary cache / cachix (nix) (push) Has been cancelled
				
			
		
			
				
	
				Validate flake & check formatting / Validate Flake (push) Has been cancelled
				
			
		
			
				
	
				Validate flake & check formatting / Formatting via Alejandra (push) Has been cancelled
				
			
		
			
				
	
				Build and deploy documentation / Check latest commit (push) Has been cancelled
				
			
		
			
				
	
				Check for typos in the source tree / check-typos (push) Has been cancelled
				
			
		
			
				
	
				Build and deploy documentation / publish (push) Has been cancelled
				
			
		
		
	
	
		
	
		
			Some checks failed
		
		
	
	Set up binary cache / cachix (default) (push) Has been cancelled
				
			Set up binary cache / cachix (maximal) (push) Has been cancelled
				
			Set up binary cache / cachix (nix) (push) Has been cancelled
				
			Validate flake & check formatting / Validate Flake (push) Has been cancelled
				
			Validate flake & check formatting / Formatting via Alejandra (push) Has been cancelled
				
			Build and deploy documentation / Check latest commit (push) Has been cancelled
				
			Check for typos in the source tree / check-typos (push) Has been cancelled
				
			Build and deploy documentation / publish (push) Has been cancelled
				
			Defaults are taken from Neovim's :help tags for those options to avoid intrusive/confusing behaviour.
This commit is contained in:
		
					parent
					
						
							
								73660af2e3
							
						
					
				
			
			
				commit
				
					
						a0a57757a0
					
				
			
		
					 1 changed files with 32 additions and 16 deletions
				
			
		|  | @ -126,16 +126,14 @@ in { | |||
| 
 | ||||
|       example = {"some_variable" = 42;}; | ||||
|       description = '' | ||||
|         An attribute set containing global variable values | ||||
|         for storing vim variables as early as possible. If | ||||
|         populated, this option will set vim variables in the | ||||
|         built luaConfigRC as the first item. | ||||
|         A freeform attribute set containing global variable values for setting vim | ||||
|         variables as early as possible. If populated, this option will set vim variables | ||||
|         in the built {option}`luaConfigRC` as the first item. | ||||
| 
 | ||||
|         ::: {.note} | ||||
|         `{foo = "bar";}` will set `vim.g.foo` to "bar", where | ||||
|         the type of `bar` in the resulting Lua value will be | ||||
|         inferred from the type of the value in the `{name = value;}` | ||||
|         pair passed to the option. | ||||
|         `{foo = "bar";}` will set `vim.g.foo` to "bar", where the type of `bar` in the | ||||
|         resulting Lua value will be inferred from the type of the value in the | ||||
|         `{name = value;}` pair passed to the option. | ||||
|         ::: | ||||
|       ''; | ||||
|     }; | ||||
|  | @ -212,21 +210,39 @@ in { | |||
|             default = true; | ||||
|             description = "Enable word wrapping."; | ||||
|           }; | ||||
| 
 | ||||
|           tabstop = mkOption { | ||||
|             type = int; | ||||
|             default = 8; # Neovim default | ||||
|             description = '' | ||||
|               Number of spaces that a `<Tab>` in the file counts for. Also see | ||||
|               the {command}`:retab` command, and the {option}`softtabstop` option. | ||||
|             ''; | ||||
|           }; | ||||
| 
 | ||||
|           shiftwidth = mkOption { | ||||
|             type = int; | ||||
|             default = 8; # Neovim default | ||||
|             description = '' | ||||
|               Number of spaces to use for each step of (auto)indent. Used for | ||||
|               {option}`cindent`, `>>`, `<<`, etc. | ||||
| 
 | ||||
|               When zero the {option}`tabstop` value will be used. | ||||
|             ''; | ||||
|           }; | ||||
|         }; | ||||
|       }; | ||||
| 
 | ||||
|       example = {visualbell = true;}; | ||||
|       description = '' | ||||
|         An attribute set containing vim options to be set | ||||
|         as early as possible. If populated, this option will | ||||
|         set vim options in the built luaConfigRC after `basic` | ||||
|         and before `pluginConfigs` DAG entries. | ||||
|         A freeform attribute set containing vim options to be set as early as possible. | ||||
|         If populated, this option will set vim options in the built {option}`luaConfigRC` | ||||
|         after `basic` and before `pluginConfigs` DAG entries. | ||||
| 
 | ||||
|         ::: {.note} | ||||
|         `{foo = "bar";}` will set `vim.o.foo` to "bar", where | ||||
|         the type of `bar` in the resulting Lua value will be | ||||
|         inferred from the type of the value in the`{name = value;}` | ||||
|         pair passed to the option. | ||||
|         `{foo = "bar";}` will set `vim.o.foo` to "bar", where the type of `bar` in the | ||||
|         resulting Lua value will be inferred from the type of the value in the | ||||
|         `{name = value;}` pair passed to the option. | ||||
|         ::: | ||||
|       ''; | ||||
|     }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue