neovim

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

commit 39fc340276a4fdbe1f1bb4bfbe7328267ad7f9d6
parent ea1c9f60e04429e8472370b59616d069ad7fbc8c
Author: Yi Ming <ofseed@foxmail.com>
Date:   Tue, 23 Apr 2024 02:18:49 +0800

fix(lsp): avoid assertion when `client_hints` do not exist (#28461)


Diffstat:
Mruntime/lua/vim/lsp/inlay_hint.lua | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/runtime/lua/vim/lsp/inlay_hint.lua b/runtime/lua/vim/lsp/inlay_hint.lua @@ -311,6 +311,10 @@ api.nvim_set_decoration_provider(namespace, { if bufstate.version ~= util.buf_versions[bufnr] then return end + + if not bufstate.client_hints then + return + end local hints_by_client = assert(bufstate.client_hints) for lnum = topline, botline do