mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user