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 authored and GitHub committed 2024-08-20 05:52:14 -07:00
1 parent ac53996ebb
commit 766d503627
3 files changed
+910 -658

No files matched your search

+2 -1
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)