aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua5
-rw-r--r--lspc.lua1
-rw-r--r--supported-servers.lua4
3 files changed, 10 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index c5aa082..54ea67a 100644
--- a/init.lua
+++ b/init.lua
@@ -1635,5 +1635,10 @@ vis:option_register('lspc-confirm-cmd', 'string', function(value)
return true
end, 'External tool vis-lspc uses to ask the user for confirmation')
+vis:option_register('lspc-message-level', 'number', function(value)
+ lspc.message_level = value
+ return true
+end, 'Message level to show in UI (for server messages)')
+
dofile(source_path .. 'bindings.lua')
return lspc
diff --git a/lspc.lua b/lspc.lua
index 235a7e4..5bd3c46 100644
--- a/lspc.lua
+++ b/lspc.lua
@@ -78,6 +78,7 @@ local client_capabilites = {
},
declaration = {dynamicRegistration = false, linkSupport = true},
definition = goto_methods_capabilities,
+ publishDiagnostics = {relatedInformation = false},
typeDefinition = goto_methods_capabilities,
implementation = goto_methods_capabilities,
references = {dynamicRegistration = false},
diff --git a/supported-servers.lua b/supported-servers.lua
index 62583b9..bc717bf 100644
--- a/supported-servers.lua
+++ b/supported-servers.lua
@@ -58,4 +58,8 @@ return {
-- ocaml (ocaml-language-server)
-- https://github.com/ocaml/ocaml-lsp
caml = {name = 'ocaml', cmd = 'ocamllsp'},
+
+ -- go (gopls)
+ -- https://github.com/golang/tools/tree/master/gopls
+ go = {name = 'go', cmd = 'gopls'},
}