neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 3275ae830da97ef907ff3cfb0170706b6a430f57
parent 2ee39b7eb46f091bf22dd1ba3066afff51139bdd
Author: Lewis Russell <lewis6991@gmail.com>
Date:   Thu, 24 Oct 2024 10:31:34 +0100

fix(lsp.protocal): improve typing of constants

Diffstat:
Mruntime/lua/vim/lsp/protocol.lua | 6+++++-
Mscripts/gen_vimdoc.lua | 3+++
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua @@ -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 diff --git a/scripts/gen_vimdoc.lua b/scripts/gen_vimdoc.lua @@ -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