diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-11-21 11:39:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-21 11:39:30 -0500 |
commit | a2749482d9e73b8149ff73af6da1878a5c218fe5 (patch) | |
tree | 9004531221025821b87d797849b06c420b0150f2 /runtime/doc/lua.txt | |
parent | 120a88163078e61b272e9629138642bc5df80e4a (diff) | |
download | rneovim-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.txt | 14 |
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: ~ |