Skip to content

Commit

Permalink
disable diagnostics for now - still immature
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Mar 15, 2024
1 parent a999f14 commit 2090456
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,9 @@ return {
}
)

-- Workaround to only show diagnostics after saving buffer
-- https://github.com/neovim/neovim/issues/13324#issuecomment-1592038788
vim.api.nvim_create_autocmd(
{"BufNew", "InsertEnter"},
{
callback = function(args)
vim.diagnostic.disable(args.buf)
end
}
)

vim.api.nvim_create_autocmd(
{"BufWrite"},
{
callback = function(args)
vim.diagnostic.enable(args.buf)
end
}
)
-- Disable LSP diagnostics for now. They seem a bit immature for now.
-- We may consider enable but with some defer solution like https://github.com/yorickpeterse/nvim-dd
-- so it is less noisy.
vim.diagnostic.disable()
end
}

0 comments on commit 2090456

Please sign in to comment.