From 8dfae271d020e198e385382c4f31b15ad4d10405 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 7 Nov 2024 21:51:31 +0100 Subject: [PATCH] use plaintext for pyright hover request see my comment here for the details: https://www.reddit.com/r/neovim/comments/1gdv1rc/comment/lvt9nlm/ --- lua/config/lsp.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index d5dd354..2f61e91 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -136,7 +136,11 @@ if utils.executable('pyright') then tagSupport = { valueSet = { 2 } } - } + }, + hover = { + contentFormat = { "plaintext" }, + dynamicRegistration = true, + }, } } local merged_capability = vim.tbl_deep_extend("force", capabilities, new_capability)