mirror of
https://github.com/neovim/neovim
synced 2025-07-20 21:32:16 +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
|
local sysname = vim.uv.os_uname().sysname
|
||||||
|
|
||||||
|
--- @class vim.lsp.protocol.constants
|
||||||
|
--- @nodoc
|
||||||
local constants = {
|
local constants = {
|
||||||
--- @enum lsp.DiagnosticSeverity
|
--- @enum lsp.DiagnosticSeverity
|
||||||
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 = {}
|
local protocol = {}
|
||||||
|
|
||||||
--- @diagnostic disable:no-unknown
|
--- @diagnostic disable:no-unknown
|
||||||
|
@ -289,6 +289,9 @@ local config = {
|
|||||||
},
|
},
|
||||||
fn_xform = function(fun)
|
fn_xform = function(fun)
|
||||||
fun.name = fun.name:gsub('result%.', '')
|
fun.name = fun.name:gsub('result%.', '')
|
||||||
|
if fun.module == 'vim.lsp.protocol' then
|
||||||
|
fun.classvar = nil
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
section_fmt = function(name)
|
section_fmt = function(name)
|
||||||
if name:lower() == 'lsp' then
|
if name:lower() == 'lsp' then
|
||||||
|
Reference in New Issue
Block a user