From 85ace3c4355d7bb9f981b9d24a84c790347575c5 Mon Sep 17 00:00:00 2001 From: git-bruh Date: Mon, 1 Apr 2024 23:33:07 +0530 Subject: _show_markdown_message: helper for markdown info --- lspc.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lspc.lua') diff --git a/lspc.lua b/lspc.lua index aa51560..1af21a5 100644 --- a/lspc.lua +++ b/lspc.lua @@ -55,7 +55,7 @@ local lspc = { -- --- ClientCapabilities we tell the language server when calling "initialize" -- -local supported_markup_kind = {'plaintext'} +local supported_markup_kind = {'markdown'} local goto_methods_capabilities = { linkSupport = true, @@ -69,14 +69,14 @@ local client_capabilites = { }, textDocument = { synchronization = {dynamicRegistration = false, didSave = true}, - -- ask the server to send us only plaintext completionItems + -- ask the server to send us only markdown completionItems completion = { dynamicRegistration = false, completionItem = {documentationFormat = supported_markup_kind}, }, - -- ask the server to send us only plaintext hover results + -- ask the server to send us only markdown hover results hover = {dynamicRegistration = false, contentFormat = supported_markup_kind}, - -- ask the server to send us only plaintext signatureHelp results + -- ask the server to send us only markdown signatureHelp results signatureHelp = { dynamicRegistration = false, signatureInformation = {documentationFormat = supported_markup_kind}, -- cgit v1.2.3 From 0e71c4a1e7aabcad269ffb1cdd3f53da6ef31df4 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 12 Apr 2024 11:10:17 +0200 Subject: make the way messages are presented configurable The two options are either using vis:message (the default) which will keep all messages in the vis message buffer and include a header line to distinguish the different messages. The second option is using open and presenting messages in a separate window supporting syntax highlighting. --- lspc.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lspc.lua') diff --git a/lspc.lua b/lspc.lua index 1af21a5..d45811b 100644 --- a/lspc.lua +++ b/lspc.lua @@ -50,6 +50,10 @@ local lspc = { -- message level to show in the UI when receiving messages from the server -- Error = 1, Warning = 2, Info = 3, Log = 4 message_level = 3, + + -- How to present messages to the user. + -- 'message': use vis:message; 'open': use a new split window allowing for syntax highlighting + show_message = 'message', } -- -- cgit v1.2.3