From db51548036ebe4b01c5b78aeca7a76aa71ab4fbe Mon Sep 17 00:00:00 2001 From: Maria José Solano Date: Sun, 24 Sep 2023 21:39:59 -0700 Subject: docs: do not use deprecated functions #25334 --- runtime/doc/lua.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/doc') diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index a77cc3b565..7e888a2375 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -1680,7 +1680,7 @@ vim.print({...}) *vim.print()* "Pretty prints" the given arguments and returns them unmodified. Example: >lua - local hl_normal = vim.print(vim.api.nvim_get_hl_by_name('Normal', true)) + local hl_normal = vim.print(vim.api.nvim_get_hl(0, { name = 'Normal' })) < Return: ~ -- cgit