fix(lsp.protocal): improve typing of constants

This commit is contained in:
Lewis Russell
2024-10-24 10:31:34 +01:00
parent 2ee39b7eb4
commit 3275ae830d
2 changed files with 8 additions and 1 deletions

View File

@ -12,6 +12,8 @@ end
local sysname = vim.uv.os_uname().sysname
--- @class vim.lsp.protocol.constants
--- @nodoc
local constants = {
--- @enum lsp.DiagnosticSeverity
DiagnosticSeverity = {
@ -314,7 +316,9 @@ local constants = {
},
}
-- Protocol for the Microsoft Language Server Protocol (mslsp)
--- Protocol for the Microsoft Language Server Protocol (mslsp)
--- @class vim.lsp.protocol : vim.lsp.protocol.constants
--- @nodoc
local protocol = {}
--- @diagnostic disable:no-unknown

View File

@ -289,6 +289,9 @@ local config = {
},
fn_xform = function(fun)
fun.name = fun.name:gsub('result%.', '')
if fun.module == 'vim.lsp.protocol' then
fun.classvar = nil
end
end,
section_fmt = function(name)
if name:lower() == 'lsp' then