mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
defaults: disable 'number', 'relativenumber', and 'signcolumn' in terminal buffers (#31443)
This commit is contained in:
parent
3cb1e825e6
commit
56d11b494b
@ -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|
|
||||
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user