mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 04:17:01 +00:00 
			
		
		
		
	feat(defaults): disable 'foldcolumn' in terminal buffers (#31480)
This commit is contained in:
		| @@ -58,8 +58,8 @@ DEFAULTS | ||||
| • |]d-default| and |[d-default| accept a count. | ||||
| • |[D-default| and |]D-default| jump to the first and last diagnostic in the | ||||
|   current buffer, respectively. | ||||
| • 'number', 'relativenumber', and 'signcolumn' are disabled in |terminal| | ||||
|   buffers. See |terminal-config| for an example of changing these defaults. | ||||
| • 'number', 'relativenumber', 'signcolumn', and 'foldcolumn' are disabled in | ||||
|   |terminal| buffers. See |terminal-config| for an example of changing these defaults. | ||||
|  | ||||
| DIAGNOSTICS | ||||
|  | ||||
|   | ||||
| @@ -111,6 +111,7 @@ global configuration. | ||||
| - 'number' is disabled | ||||
| - 'relativenumber' is disabled | ||||
| - 'signcolumn' is set to "no" | ||||
| - 'foldcolumn' is set to "0" | ||||
|  | ||||
| You can change the defaults with a TermOpen autocommand: >vim | ||||
|     au TermOpen * setlocal list | ||||
|   | ||||
| @@ -189,6 +189,7 @@ nvim_terminal: | ||||
|     - 'nonumber' | ||||
|     - 'norelativenumber' | ||||
|     - 'signcolumn' set to "no" | ||||
|     - 'foldcolumn' set to "0" | ||||
|     - 'winhighlight' uses |hl-StatusLineTerm| and |hl-StatusLineTermNC| in | ||||
|       place of |hl-StatusLine| and |hl-StatusLineNC| | ||||
|  | ||||
|   | ||||
| @@ -495,6 +495,7 @@ do | ||||
|       vim.wo[0][0].number = false | ||||
|       vim.wo[0][0].relativenumber = false | ||||
|       vim.wo[0][0].signcolumn = 'no' | ||||
|       vim.wo[0][0].foldcolumn = '0' | ||||
|  | ||||
|       -- This is gross. Proper list options support when? | ||||
|       local winhl = vim.o.winhighlight | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Micah Halter
					Micah Halter