aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen_lsp.lua')
-rw-r--r--scripts/gen_lsp.lua15
1 files changed, 7 insertions, 8 deletions
diff --git a/scripts/gen_lsp.lua b/scripts/gen_lsp.lua
index 0e7eb38cca..b332a17fdc 100644
--- a/scripts/gen_lsp.lua
+++ b/scripts/gen_lsp.lua
@@ -159,11 +159,13 @@ function M.gen(opt)
local output = {
'--' .. '[[',
- 'This file is autogenerated from scripts/gen_lsp.lua',
+ 'THIS FILE IS GENERATED by scripts/gen_lsp.lua',
+ 'DO NOT EDIT MANUALLY',
+ '',
+ 'Based on LSP protocol ' .. opt.version,
+ '',
'Regenerate:',
- ([=[nvim -l scripts/gen_lsp.lua gen --version %s --out runtime/lua/vim/lsp/_meta/protocol.lua]=]):format(
- DEFAULT_LSP_VERSION
- ),
+ ([=[nvim -l scripts/gen_lsp.lua gen --version %s]=]):format(DEFAULT_LSP_VERSION),
'--' .. ']]',
'',
'---@meta',
@@ -171,12 +173,9 @@ function M.gen(opt)
'',
'---@alias lsp.null nil',
'---@alias uinteger integer',
- '---@alias lsp.decimal number',
+ '---@alias decimal number',
'---@alias lsp.DocumentUri string',
'---@alias lsp.URI string',
- '---@alias lsp.LSPObject table<string, lsp.LSPAny>',
- '---@alias lsp.LSPArray lsp.LSPAny[]',
- '---@alias lsp.LSPAny lsp.LSPObject|lsp.LSPArray|string|number|boolean|nil',
'',
}