aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/lua.txt
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-11-21 11:39:30 -0500
committerGitHub <noreply@github.com>2021-11-21 11:39:30 -0500
commita2749482d9e73b8149ff73af6da1878a5c218fe5 (patch)
tree9004531221025821b87d797849b06c420b0150f2 /runtime/doc/lua.txt
parent120a88163078e61b272e9629138642bc5df80e4a (diff)
downloadrneovim-a2749482d9e73b8149ff73af6da1878a5c218fe5.tar.gz
rneovim-a2749482d9e73b8149ff73af6da1878a5c218fe5.tar.bz2
rneovim-a2749482d9e73b8149ff73af6da1878a5c218fe5.zip
chore(lsp): clean up initialization process (#16369)
* send vim.NIL instead of not sending workspaceFolders * read fallback rootPath and rootUri from workspaceFolders * update documentation
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r--runtime/doc/lua.txt14
1 files changed, 6 insertions, 8 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index cc70c7b2fd..5e9189158a 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -1617,14 +1617,12 @@ validate({opt}) *vim.validate()*
vim.validate{arg1={{'foo'}, 'table'}, arg2={'foo', 'string'}}
=> NOP (success)
-<
->
- vim.validate{arg1={1, 'table'}}
- => error('arg1: expected table, got number')
-<
->
- vim.validate{arg1={3, function(a) return (a % 2) == 0 end, 'even number'}}
- => error('arg1: expected even number, got 3')
+
+ vim.validate{arg1={1, 'table'}}
+ => error('arg1: expected table, got number')
+
+ vim.validate{arg1={3, function(a) return (a % 2) == 0 end, 'even number'}}
+ => error('arg1: expected even number, got 3')
<
Parameters: ~