diff options
author | Brian Picciano <me@mediocregopher.com> | 2024-10-09 15:38:26 +0200 |
---|---|---|
committer | Brian Picciano <me@mediocregopher.com> | 2024-10-09 15:38:26 +0200 |
commit | 14cf5c06d9e9d63528a0d839fd258d280ccbc0de (patch) | |
tree | 130b4a5ae806aad0f48c87eddd7af452c138071b | |
parent | 16072a917710c760602a07704b3dc3551e87df2a (diff) |
nvim: Only add actual errors to the quickfix list
-rw-r--r-- | nvim/init.lua | 5 |
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, }) |