defaults: disable 'number', 'relativenumber', and 'signcolumn' in terminal buffers (#31443)

This commit is contained in:
Gregory Anders 2024-12-04 08:40:01 -06:00 committed by GitHub
parent 3cb1e825e6
commit 56d11b494b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View File

@ -186,6 +186,9 @@ nvim_terminal:
- 'textwidth' set to 0
- 'nowrap'
- 'nolist'
- 'nonumber'
- 'norelativenumber'
- 'signcolumn' set to "no"
- 'winhighlight' uses |hl-StatusLineTerm| and |hl-StatusLineTermNC| in
place of |hl-StatusLine| and |hl-StatusLineNC|

View File

@ -492,6 +492,9 @@ do
vim.bo.textwidth = 0
vim.wo[0][0].wrap = false
vim.wo[0][0].list = false
vim.wo[0][0].number = false
vim.wo[0][0].relativenumber = false
vim.wo[0][0].signcolumn = 'no'
-- This is gross. Proper list options support when?
local winhl = vim.o.winhighlight

View File

@ -511,7 +511,7 @@ describe('buffer cursor position is correct in terminal with number column', fun
before_each(function()
clear()
command('set number')
command('au TermOpen * set number')
end)
describe('in a line with no multibyte chars or trailing spaces,', function()