From c818a9713609f26014ffabf94547a9056858f9a0 Mon Sep 17 00:00:00 2001 From: ray-x Date: Fri, 18 Jun 2021 08:50:49 +1000 Subject: [PATCH] gopls default setup --- README.md | 2 +- lua/navigator/lspclient/clients.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 57381bf..f6ae7a2 100644 --- a/README.md +++ b/README.md @@ -208,7 +208,7 @@ require.'navigator'.setup({ format_on_save = true, -- set to false to disasble lsp code format on save (if you are using prettier/efm/formater etc) tsserver = { filetypes = {'typescript'} -- disable javascript etc, - -- set to {} to disable the lspclient for all filetype + -- set to {} to disable the lspclient for all filetypes }, gopls = { -- gopls setting on_attach = function(client, bufnr) -- on_attach for gopls diff --git a/lua/navigator/lspclient/clients.lua b/lua/navigator/lspclient/clients.lua index a277fec..88e2558 100644 --- a/lua/navigator/lspclient/clients.lua +++ b/lua/navigator/lspclient/clients.lua @@ -103,7 +103,8 @@ local setups = { }, settings = { gopls = { - flags = {allow_incremental_sync = true, debounce_text_changes = 500}, + -- flags = {allow_incremental_sync = true, debounce_text_changes = 500}, + -- not supported analyses = {unusedparams = true, unreachable = false}, codelenses = { generate = true, -- show the `go generate` lens.