From 3f6de1f686ccfa105bb1919aeb3cce1c740ef96b Mon Sep 17 00:00:00 2001 From: ray-x Date: Sat, 17 Jul 2021 12:34:07 +1000 Subject: [PATCH] document update, golsp setup --- README.md | 4 +++- lua/navigator/lspclient/clients.lua | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c06daae..6cb9004 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,9 @@ Here are some examples #### Example: Javascript closure The following screenshot shows javascript call tree 🌲 of variable `browser` insides a closure. This feature is similar to incoming & outgoing calls from LSP. It is designed for the symbol analysis. -![js_closure_call_tree](https://user-images.githubusercontent.com/1681295/119120589-cee23700-ba6f-11eb-95c5-b9ac8d445c31.jpg) + +![navigator](https://user-images.githubusercontent.com/1681295/126022657-57c0062e-a0df-476b-8dc7-8969380069b3.jpg) + Explanation: - The first line of floating windows shows there are 3 references for the symbol *browser* in closure.js diff --git a/lua/navigator/lspclient/clients.lua b/lua/navigator/lspclient/clients.lua index f08c3f3..fc57931 100644 --- a/lua/navigator/lspclient/clients.lua +++ b/lua/navigator/lspclient/clients.lua @@ -105,6 +105,7 @@ local setups = { flags = {allow_incremental_sync = true, debounce_text_changes = 500}, settings = { gopls = { + -- more settings: https://github.com/golang/tools/blob/master/gopls/doc/settings.md -- flags = {allow_incremental_sync = true, debounce_text_changes = 500}, -- not supported analyses = {unusedparams = true, unreachable = false}, @@ -117,6 +118,8 @@ local setups = { staticcheck = true, matcher = "fuzzy", experimentalDiagnosticsDelay = "500ms", + -- diagnosticsDelay = "500ms", + -- experimentalWatchedFileDelay = "100ms", symbolMatcher = "fuzzy", gofumpt = false, -- true, -- turn on for new repos, gofmpt is good but also create code turmoils buildFlags = {"-tags", "integration"}