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 c6f91cc
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,6 @@ 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
}
)
vim.diagnostic.disable()
end
}

0 comments on commit c6f91cc

Please sign in to comment.