mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
docs: add lua typing for vim.NIL
This commit is contained in:
committed by
Lewis Russell
parent
965dbd0e01
commit
4d91604c88
@@ -2139,7 +2139,7 @@ end
|
||||
---
|
||||
---@param settings table language server settings
|
||||
---@param section string indicating the field of the settings table
|
||||
---@return table|string The value of settings accessed via section
|
||||
---@return table|string|vim.NIL The value of settings accessed via section. `vim.NIL` if not found.
|
||||
function M.lookup_section(settings, section)
|
||||
for part in vim.gsplit(section, '.', { plain = true }) do
|
||||
settings = settings[part]
|
||||
|
||||
Reference in New Issue
Block a user