Open zeddo123 opened 5 months ago
When the running the language server with neovim lsp-config, diagnostics are updated only when the buffer is written. Thus, diagnostic error do not get removed when you fix them without saving the file. This does not happen with gopls.
gopls
Here is my config for golangci-lint-langserver:
golangci-lint-langserver
require('lspconfig').golangci_lint_ls.setup({ cmd = {"golangci-lint-langserver'}, command = { "golangci-lint", "run", "--out-format", "json", "--issues-exit-code=1"} })
When the running the language server with neovim lsp-config, diagnostics are updated only when the buffer is written. Thus, diagnostic error do not get removed when you fix them without saving the file. This does not happen with
gopls
.Here is my config for
golangci-lint-langserver
: