aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/lua.txt
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-01-18 11:11:37 -0800
committerGitHub <noreply@github.com>2021-01-18 14:11:37 -0500
commitf9b3110549cf7065845c92385e96760376b8c48b (patch)
treecde2c64eb92ad9094259fa6e4322c2cabc670827 /runtime/doc/lua.txt
parent3f63100d5bc3bcaddccef4e5f95af9ea5cff1cc3 (diff)
downloadrneovim-f9b3110549cf7065845c92385e96760376b8c48b.tar.gz
rneovim-f9b3110549cf7065845c92385e96760376b8c48b.tar.bz2
rneovim-f9b3110549cf7065845c92385e96760376b8c48b.zip
lsp: validate and document server settings (#13698)
* update lua documentation * run docgen
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 92898cfad1..0bbed56662 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -1265,14 +1265,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: ~