aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-10-09 19:31:14 +0800
committerGitHub <noreply@github.com>2024-10-09 11:31:14 +0000
commit8ef3dd3afa20024f439d8b7a69f316069c1909d3 (patch)
treedecc07a8049abe9989d29bade0cb3556504b579e /runtime/lua/vim
parent0264870c0aa50fd4e34fb8a6b3c3c3cd88a22db7 (diff)
downloadrneovim-8ef3dd3afa20024f439d8b7a69f316069c1909d3.tar.gz
rneovim-8ef3dd3afa20024f439d8b7a69f316069c1909d3.tar.bz2
rneovim-8ef3dd3afa20024f439d8b7a69f316069c1909d3.zip
docs(lua): "vim.bo" is always equivalent to :setlocal (#30733)
vim.bo :lua vim.bo.textwidth = 80 :setglobal textwidth? textwidth=0 :setlocal :setlocal textwidth=80 :setglobal textwidth? textwidth=0 :set :set textwidth=80 :setglobal textwidth? textwidth=80
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/_options.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/lua/vim/_options.lua b/runtime/lua/vim/_options.lua
index a61fa61256..77d7054626 100644
--- a/runtime/lua/vim/_options.lua
+++ b/runtime/lua/vim/_options.lua
@@ -274,11 +274,9 @@ vim.go = setmetatable({}, {
})
--- Get or set buffer-scoped |options| for the buffer with number {bufnr}.
---- If {bufnr} is omitted then the current buffer is used.
+--- Like `:setlocal`. If {bufnr} is omitted then the current buffer is used.
--- Invalid {bufnr} or key is an error.
---
---- Note: this is equivalent to `:setlocal` for |global-local| options and `:set` otherwise.
----
--- Example:
---
--- ```lua