document update, golsp setup

neovim_0_5
ray-x 3 years ago
parent 62178024fd
commit 3f6de1f686

@ -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 <span style="color:red"> *browser* </span> in closure.js

@ -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"}

Loading…
Cancel
Save