mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 20:30:40 -06: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:
1 parent
ac53996ebb
commit
766d503627
3 files changed
+910
-658
No files matched your search
+2
-1
@@ -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