aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_lsp.lua
diff options
context:
space:
mode:
authorRicardo Casía <ricardocasia.dev@gmail.com>2024-08-20 14:52:14 +0200
committerGitHub <noreply@github.com>2024-08-20 05:52:14 -0700
commit766d5036275e871932893f8dfc8c5bc1eb7a3726 (patch)
tree0a194764dff62920cab10c04b825e09fbfb5982e /scripts/gen_lsp.lua
parentac53996ebbafe964480f0865c49866f2a429e8a1 (diff)
downloadrneovim-766d5036275e871932893f8dfc8c5bc1eb7a3726.tar.gz
rneovim-766d5036275e871932893f8dfc8c5bc1eb7a3726.tar.bz2
rneovim-766d5036275e871932893f8dfc8c5bc1eb7a3726.zip
docs(lsp): annotate with `vim.lsp.protocol.Methods` enum #29521
Added the enum type annotation `vim.lsp.protocol.Methods` to provide some intellisense support.
Diffstat (limited to 'scripts/gen_lsp.lua')
-rw-r--r--scripts/gen_lsp.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gen_lsp.lua b/scripts/gen_lsp.lua
index 8bd771d97b..c8dcf8c018 100644
--- a/scripts/gen_lsp.lua
+++ b/scripts/gen_lsp.lua
@@ -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)