diff options
| author | Florian Fischer <gitlab@muhq.space> | 2024-04-15 16:06:31 +0000 |
|---|---|---|
| committer | Florian Fischer <gitlab@muhq.space> | 2024-04-15 16:06:31 +0000 |
| commit | 036a656fbdd2a21d09746a8dcfb7a71abab47b62 (patch) | |
| tree | 7dae080636002f1469444b606c8ffa1f06e3fc30 /lspc.lua | |
| parent | 6acbe06d75c7f973a207423b7109d084b85d09b6 (diff) | |
| parent | 0e71c4a1e7aabcad269ffb1cdd3f53da6ef31df4 (diff) | |
| download | vis-lspc-036a656fbdd2a21d09746a8dcfb7a71abab47b62.tar.gz vis-lspc-036a656fbdd2a21d09746a8dcfb7a71abab47b62.zip | |
Merge branch 'show-message' into 'main'
make the way messages are presented configurable
See merge request muhq/vis-lspc!49
Diffstat (limited to 'lspc.lua')
| -rw-r--r-- | lspc.lua | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -50,12 +50,16 @@ 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', } -- --- 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 +73,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}, |
