docs(lsp): annotate with vim.lsp.protocol.Methods enum #29521

Added the enum type annotation `vim.lsp.protocol.Methods` to provide some intellisense support.
This commit is contained in:
Ricardo Casía
2024-08-20 14:52:14 +02:00
committed by GitHub
parent ac53996ebb
commit 766d503627
3 changed files with 910 additions and 658 deletions

View File

@ -60,9 +60,10 @@ end
local function gen_methods(protocol)
local output = {
'-- Generated by gen_lsp.lua, keep at end of file.',
'--- LSP method names.',
'---',
'---@enum vim.lsp.protocol.Methods',
'---@see https://microsoft.github.io/language-server-protocol/specification/#metaModel',
'--- LSP method names.',
'protocol.Methods = {',
}
local indent = (' '):rep(2)