summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nvim/init.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index d69d297..fd12eab 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -66,7 +66,10 @@ vim.api.nvim_create_autocmd('BufWritePre', {
-- Open LSP Diagnostics in quickfix list on save
vim.api.nvim_create_autocmd('BufWritePost', {
callback = function(args)
- vim.diagnostic.setqflist({open = false})
+ vim.diagnostic.setqflist({
+ open = false,
+ severity = vim.diagnostic.severity.ERROR,
+ })
end,
})