diff options
| author | github-actions <github-actions@github.com> | 2021-11-29 13:52:43 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2021-11-29 13:52:43 +0000 |
| commit | 760d1c747770baed2dc00200682a81e261d25679 (patch) | |
| tree | 9d2bd99ef15cc58ac0520f7077528e7d73129f42 /doc | |
| parent | feat: add golangci-lint-languageserver support (#1511) (diff) | |
| download | nvim-lspconfig-760d1c747770baed2dc00200682a81e261d25679.tar nvim-lspconfig-760d1c747770baed2dc00200682a81e261d25679.tar.gz nvim-lspconfig-760d1c747770baed2dc00200682a81e261d25679.tar.bz2 nvim-lspconfig-760d1c747770baed2dc00200682a81e261d25679.tar.lz nvim-lspconfig-760d1c747770baed2dc00200682a81e261d25679.tar.xz nvim-lspconfig-760d1c747770baed2dc00200682a81e261d25679.tar.zst nvim-lspconfig-760d1c747770baed2dc00200682a81e261d25679.zip | |
docs: update server_configurations.md
skip-checks: true
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/server_configurations.md | 38 |
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 |
