aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorJongwook Choi <wookayin@gmail.com>2024-01-16 19:19:21 -0500
committerMathias Fußenegger <mfussenegger@users.noreply.github.com>2024-01-20 14:02:16 +0100
commitfa9a85ae468b9df30ae9e5c05a08c0f124e267df (patch)
tree1b950b61803691b0104d66129cf66df14a44ce88 /runtime/lua/vim
parentf936a962d04f9937946018cc1386f20bda6fc1de (diff)
downloadrneovim-fa9a85ae468b9df30ae9e5c05a08c0f124e267df.tar.gz
rneovim-fa9a85ae468b9df30ae9e5c05a08c0f124e267df.tar.bz2
rneovim-fa9a85ae468b9df30ae9e5c05a08c0f124e267df.zip
fix(lsp): clean up duplicate and unused meta type annotations
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/lsp/_meta.lua7
-rw-r--r--runtime/lua/vim/lsp/_meta/protocol.lua13
2 files changed, 7 insertions, 13 deletions
diff --git a/runtime/lua/vim/lsp/_meta.lua b/runtime/lua/vim/lsp/_meta.lua
index 559939c236..be3222828d 100644
--- a/runtime/lua/vim/lsp/_meta.lua
+++ b/runtime/lua/vim/lsp/_meta.lua
@@ -14,10 +14,3 @@ error('Cannot require a meta file')
---@field code integer
---@field message string
---@field data string|number|boolean|table[]|table|nil
-
---- @class lsp.DocumentFilter
---- @field language? string
---- @field scheme? string
---- @field pattern? string
-
---- @alias lsp.RegisterOptions any | lsp.StaticRegistrationOptions | lsp.TextDocumentRegistrationOptions
diff --git a/runtime/lua/vim/lsp/_meta/protocol.lua b/runtime/lua/vim/lsp/_meta/protocol.lua
index 4c053cb57e..b897b6bba5 100644
--- a/runtime/lua/vim/lsp/_meta/protocol.lua
+++ b/runtime/lua/vim/lsp/_meta/protocol.lua
@@ -1,7 +1,11 @@
--[[
-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 3.18
+
Regenerate:
-nvim -l scripts/gen_lsp.lua gen --version 3.18 --out runtime/lua/vim/lsp/_meta/protocol.lua
+nvim -l scripts/gen_lsp.lua gen --version 3.18
--]]
---@meta
@@ -9,12 +13,9 @@ error('Cannot require a meta file')
---@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
---@class lsp.ImplementationParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams, lsp.PartialResultParams