mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	Merge pull request #904 from rice-cracker-dev/deprecate-scrolloffset
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
		
			
				
	
				Set up binary cache / cachix (default) (push) Waiting to run
				
			
		
			
				
	
				Set up binary cache / cachix (maximal) (push) Waiting to run
				
			
		
			
				
	
				Set up binary cache / cachix (nix) (push) Waiting to run
				
			
		
			
				
	
				Treewide Checks / Validate flake (push) Waiting to run
				
			
		
			
				
	
				Treewide Checks / Check formatting (push) Waiting to run
				
			
		
			
				
	
				Treewide Checks / Check source tree for typos (push) Waiting to run
				
			
		
			
				
	
				Treewide Checks / Validate documentation builds (push) Waiting to run
				
			
		
			
				
	
				Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
				
			
		
			
				
	
				Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
				
			
		
			
				
	
				Build and deploy documentation / Check latest commit (push) Waiting to run
				
			
		
			
				
	
				Build and deploy documentation / publish (push) Blocked by required conditions
				
			
		
		
	
	
		
	
		
			Some checks are pending
		
		
	
	Set up binary cache / cachix (default) (push) Waiting to run
				
			Set up binary cache / cachix (maximal) (push) Waiting to run
				
			Set up binary cache / cachix (nix) (push) Waiting to run
				
			Treewide Checks / Validate flake (push) Waiting to run
				
			Treewide Checks / Check formatting (push) Waiting to run
				
			Treewide Checks / Check source tree for typos (push) Waiting to run
				
			Treewide Checks / Validate documentation builds (push) Waiting to run
				
			Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
				
			Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
				
			Build and deploy documentation / Check latest commit (push) Waiting to run
				
			Build and deploy documentation / publish (push) Blocked by required conditions
				
			basic: deprecate vim.scrollOffset
This commit is contained in:
		
				commit
				
					
						4399a05a46
					
				
			
		
					 3 changed files with 3 additions and 9 deletions
				
			
		|  | @ -308,6 +308,7 @@ | |||
|   `vim.diagnostics.nvim-lint.linters.*.required_files`. | ||||
| - Add global function `nvf_lint` under | ||||
|   `vim.diagnostics.nvim-lint.lint_function`. | ||||
| - Deprecate `vim.scrollOffset` in favor of `vim.options.scrolloff`. | ||||
| 
 | ||||
| [Sc3l3t0n](https://github.com/Sc3l3t0n): | ||||
| 
 | ||||
|  |  | |||
|  | @ -18,7 +18,7 @@ | |||
|     showSignColumn = "signcolumn"; | ||||
| 
 | ||||
|     # 2025-02-07 | ||||
|     scrollOff = "scrolloff"; | ||||
|     scrollOffset = "scrolloff"; | ||||
|   }; | ||||
| in { | ||||
|   imports = concatLists [ | ||||
|  |  | |||
|  | @ -6,11 +6,10 @@ | |||
|   inherit (lib.options) mkOption mkEnableOption literalMD; | ||||
|   inherit (lib.strings) optionalString; | ||||
|   inherit (lib.attrsets) optionalAttrs; | ||||
|   inherit (lib.types) enum bool str int either; | ||||
|   inherit (lib.types) enum bool str either; | ||||
|   inherit (lib.generators) mkLuaInline; | ||||
|   inherit (lib.nvim.dag) entryAfter; | ||||
|   inherit (lib.nvim.binds) pushDownDefault; | ||||
|   inherit (lib.nvim.lua) toLuaObject; | ||||
|   inherit (lib.nvim.types) luaInline; | ||||
| 
 | ||||
|   cfg = config.vim; | ||||
|  | @ -22,12 +21,6 @@ in { | |||
|       description = "Hide search highlight so it doesn't stay highlighted"; | ||||
|     }; | ||||
| 
 | ||||
|     scrollOffset = mkOption { | ||||
|       type = int; | ||||
|       default = 8; | ||||
|       description = "Start scrolling this number of lines from the top or bottom of the page."; | ||||
|     }; | ||||
| 
 | ||||
|     syntaxHighlighting = mkOption { | ||||
|       type = bool; | ||||
|       default = !config.vim.treesitter.highlight.enable; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 GitHub
					GitHub