aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/server_configurations.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md
index 2cc012e7..50e5880c 100644
--- a/doc/server_configurations.md
+++ b/doc/server_configurations.md
@@ -41,6 +41,7 @@ that config. This file is accessible in neovim via `:help lspconfig-server-confi
- [fstar](#fstar)
- [gdscript](#gdscript)
- [ghcide](#ghcide)
+- [golangci_lint_ls](#golangci_lint_ls)
- [gopls](#gopls)
- [graphql](#graphql)
- [groovyls](#groovyls)
@@ -1778,6 +1779,43 @@ require'lspconfig'.ghcide.setup{}
```
+## golangci_lint_ls
+
+Combination of both lint server and client
+
+https://github.com/nametake/golangci-lint-langserver
+https://github.com/golangci/golangci-lint
+
+
+Installation of binaries needed is done via
+
+```
+go install github.com/nametake/golangci-lint-langserver@latest
+go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.1
+```
+
+
+
+
+**Snippet to enable the language server:**
+```lua
+require'lspconfig'.golangci_lint_ls.setup{}
+```
+
+**Commands and default values:**
+```lua
+ Commands:
+
+ Default Values:
+ cmd = { "golangci-lint-langserver" }
+ filetypes = { "go", "gomod" }
+ init_options = {
+ command = { "golangci-lint", "run", "--enable-all", "--disable", "lll", "--out-format", "json" }
+ }
+ root_dir = root_pattern('go.mod', '.git')
+```
+
+
## gopls
https://github.com/golang/tools/tree/master/gopls