We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4659981 commit 49e5c8fCopy full SHA for 49e5c8f
lua/go.lua
@@ -285,8 +285,10 @@ function go.setup(cfg)
285
end
286
else
287
-- vim.notify('go.nvim diagnostic setup deprecated, use vim.diagnostic instead', vim.log.levels.DEBUG)
288
- local dcfg = vim.tbl_extend('force', {}, _GO_NVIM_CFG.diagnostic)
289
- vim.diagnostic.config(dcfg)
+ if next(_GO_NVIM_CFG.diagnostic or {}) then
+ local dcfg = vim.tbl_extend('force', {}, _GO_NVIM_CFG.diagnostic)
290
+ vim.diagnostic.config(dcfg)
291
+ end
292
293
vim.defer_fn(function()
294
require('go.coverage').setup()
0 commit comments