ray-x / go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
MIT License
2.05k stars 123 forks source link

Disable Static Check #388

Closed asyrawih closed 11 months ago

asyrawih commented 11 months ago
image

How to disable the static check warning ?

asyrawih commented 11 months ago

[solved] i have solved this by adding some setting on my lsp configurtion

local capabilities = vim.lsp.protocol.make_client_capabilities()
require('go').setup({
  lsp_cfg = {
    capabilities = capabilities,
    settings = {
      gopls = {
       staticcheck = true,
       analyses = {
        ST1000 = false,
        ST1003 = false
       }
      }
    }
  },
})
asyrawih commented 11 months ago

solved