mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
87a68b6a3a
`nvim_get_option_value` and `nvim_set_option_value` better handle unsetting local options. For instance, this is currently not possible: vim.bo.tagfunc = nil This does not work because 'tagfunc' is marked as "local to buffer" and does not have a fallback global option. However, using :setlocal *does* work as expected :setlocal tagfunc= `nvim_set_option_value` behaves more like :set and :setlocal (by design), so using these as the underlying API functions beneath vim.bo and vim.wo makes those two tables act more like :setlocal. Note that vim.o *already* uses `nvim_set_option_value` under the hood, so that vim.o behaves like :set. |
||
---|---|---|
.. | ||
filetype | ||
lsp | ||
treesitter | ||
_editor.lua | ||
_init_packages.lua | ||
_meta.lua | ||
compat.lua | ||
diagnostic.lua | ||
F.lua | ||
filetype.lua | ||
fs.lua | ||
health.lua | ||
highlight.lua | ||
inspect.lua | ||
keymap.lua | ||
lsp.lua | ||
shared.lua | ||
treesitter.lua | ||
ui.lua | ||
uri.lua |