ray-x / go.nvim

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

Bug: diagnostic api change not work in neovim 0.10. #460

Open chaozwn opened 1 month ago

chaozwn commented 1 month ago

Link Issue: https://github.com/AstroNvim/AstroNvim/issues/2603

It is normal after disable_defaults = true is set. It is caused by the diagnostic api change of neovim 0.10

ray-x commented 1 month ago

You may need to define your own signs table here. go.nvim already using diagnostic.config to setup signs, which comply with neovim 0.1x requirements.

  diagnostic = { -- set diagnostic to false to disable diagnostic
    hdlr = false, -- hook diagnostic handler and send error to quickfix
    underline = true,
    -- virtual text setup
    virtual_text = { spacing = 0, prefix = '■' },
    update_in_insert = false,
    signs = true,  -- use a table to configure the signs texts
  }