diff options
author | Micah Halter <micah@mehalter.com> | 2024-12-06 11:19:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-06 10:19:24 -0600 |
commit | e8e3b443f8040329bd833fcc945d5dbf3adb832c (patch) | |
tree | 513246a7cf98c59bbd1d58a9d53a6c12d926f4c4 | |
parent | 1077843b9bee550fe2ae1e3e700a9c135005d593 (diff) | |
download | rneovim-e8e3b443f8040329bd833fcc945d5dbf3adb832c.tar.gz rneovim-e8e3b443f8040329bd833fcc945d5dbf3adb832c.tar.bz2 rneovim-e8e3b443f8040329bd833fcc945d5dbf3adb832c.zip |
feat(defaults): disable 'foldcolumn' in terminal buffers (#31480)
-rw-r--r-- | runtime/doc/news.txt | 4 | ||||
-rw-r--r-- | runtime/doc/terminal.txt | 1 | ||||
-rw-r--r-- | runtime/doc/vim_diff.txt | 1 | ||||
-rw-r--r-- | runtime/lua/vim/_defaults.lua | 1 |
4 files changed, 5 insertions, 2 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 58fe2e02e8..858a44e62b 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -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 diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt index 27586c38a7..5a1421f430 100644 --- a/runtime/doc/terminal.txt +++ b/runtime/doc/terminal.txt @@ -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 diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 8d2d672ce1..7021e1d3e2 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -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| diff --git a/runtime/lua/vim/_defaults.lua b/runtime/lua/vim/_defaults.lua index f891c3baa4..0b8a54e957 100644 --- a/runtime/lua/vim/_defaults.lua +++ b/runtime/lua/vim/_defaults.lua @@ -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 |