mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
fix(lsp.protocal): improve typing of constants
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user