docs: getreg() type #34215

```lua
---@type string
local _a = vim.fn.getreg('a', 1)

---@type string[]
local _b = vim.fn.getreg('a', 1, 1)
```
This commit is contained in:
phanium
2025-06-05 00:26:56 +08:00
committed by GitHub
parent 442dade5be
commit f577bb024e
3 changed files with 9 additions and 6 deletions

View File

@@ -4089,6 +4089,7 @@ getreg([{regname} [, 1 [, {list}]]]) *getreg()*
Parameters: ~
• {regname} (`string?`)
• {expr} (`any?`)
• {list} (`nil|false?`)
Return: ~