From fa9a85ae468b9df30ae9e5c05a08c0f124e267df Mon Sep 17 00:00:00 2001 From: Jongwook Choi Date: Tue, 16 Jan 2024 19:19:21 -0500 Subject: fix(lsp): clean up duplicate and unused meta type annotations --- scripts/gen_lsp.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'scripts') 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', - '---@alias lsp.LSPArray lsp.LSPAny[]', - '---@alias lsp.LSPAny lsp.LSPObject|lsp.LSPArray|string|number|boolean|nil', '', } -- cgit