mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
vim-patch:95ea0b0: runtime(doc): make 'shiftwidth' setting more precise (#34266)
closes: vim/vim#17414
95ea0b0f8d
Co-authored-by: Damien Lejay <damien@lejay.be>
This commit is contained in:
@@ -5503,10 +5503,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
*'shiftwidth'* *'sw'*
|
*'shiftwidth'* *'sw'*
|
||||||
'shiftwidth' 'sw' number (default 8)
|
'shiftwidth' 'sw' number (default 8)
|
||||||
local to buffer
|
local to buffer
|
||||||
Number of spaces to use for each step of (auto)indent. Used for
|
Number of columns that make up one level of (auto)indentation. Used
|
||||||
|'cindent'|, |>>|, |<<|, etc.
|
by |'cindent'|, |<<|, |>>|, etc.
|
||||||
When zero the 'tabstop' value will be used. Use the |shiftwidth()|
|
If set to 0, Vim uses the current 'tabstop' value. Use |shiftwidth()|
|
||||||
function to get the effective shiftwidth value.
|
to obtain the effective value in scripts.
|
||||||
|
|
||||||
*'shortmess'* *'shm'* *E1336*
|
*'shortmess'* *'shm'* *E1336*
|
||||||
'shortmess' 'shm' string (default "ltToOCF")
|
'shortmess' 'shm' string (default "ltToOCF")
|
||||||
|
8
runtime/lua/vim/_meta/options.lua
generated
8
runtime/lua/vim/_meta/options.lua
generated
@@ -5822,10 +5822,10 @@ vim.o.sr = vim.o.shiftround
|
|||||||
vim.go.shiftround = vim.o.shiftround
|
vim.go.shiftround = vim.o.shiftround
|
||||||
vim.go.sr = vim.go.shiftround
|
vim.go.sr = vim.go.shiftround
|
||||||
|
|
||||||
--- Number of spaces to use for each step of (auto)indent. Used for
|
--- Number of columns that make up one level of (auto)indentation. Used
|
||||||
--- `'cindent'`, `>>`, `<<`, etc.
|
--- by `'cindent'`, `<<`, `>>`, etc.
|
||||||
--- When zero the 'tabstop' value will be used. Use the `shiftwidth()`
|
--- If set to 0, Vim uses the current 'tabstop' value. Use `shiftwidth()`
|
||||||
--- function to get the effective shiftwidth value.
|
--- to obtain the effective value in scripts.
|
||||||
---
|
---
|
||||||
--- @type integer
|
--- @type integer
|
||||||
vim.o.shiftwidth = 8
|
vim.o.shiftwidth = 8
|
||||||
|
@@ -7760,10 +7760,10 @@ local options = {
|
|||||||
cb = 'did_set_shiftwidth_tabstop',
|
cb = 'did_set_shiftwidth_tabstop',
|
||||||
defaults = 8,
|
defaults = 8,
|
||||||
desc = [=[
|
desc = [=[
|
||||||
Number of spaces to use for each step of (auto)indent. Used for
|
Number of columns that make up one level of (auto)indentation. Used
|
||||||
|'cindent'|, |>>|, |<<|, etc.
|
by |'cindent'|, |<<|, |>>|, etc.
|
||||||
When zero the 'tabstop' value will be used. Use the |shiftwidth()|
|
If set to 0, Vim uses the current 'tabstop' value. Use |shiftwidth()|
|
||||||
function to get the effective shiftwidth value.
|
to obtain the effective value in scripts.
|
||||||
]=],
|
]=],
|
||||||
full_name = 'shiftwidth',
|
full_name = 'shiftwidth',
|
||||||
scope = { 'buf' },
|
scope = { 'buf' },
|
||||||
|
Reference in New Issue
Block a user