docs: add lua typing for vim.NIL

This commit is contained in:
Jongwook Choi
2024-01-14 22:37:07 -05:00
committed by Lewis Russell
parent 965dbd0e01
commit 4d91604c88
5 changed files with 13 additions and 4 deletions

View File

@@ -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]