nametake / golangci-lint-langserver

golangci-lint language server
MIT License
201 stars 19 forks source link

Lint Diagnostics are updating only after a save in neovim (lsp-config) #36

Open zeddo123 opened 5 months ago

zeddo123 commented 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.

Here is my config for golangci-lint-langserver:

require('lspconfig').golangci_lint_ls.setup({
   cmd = {"golangci-lint-langserver'},
   command = { "golangci-lint", "run", "--out-format", "json",  "--issues-exit-code=1"}
})