only show diagnostics on save
This commit is contained in:
parent
3cd018123f
commit
2f409272b4
|
@ -204,6 +204,23 @@ in
|
|||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, { buffer = args.buf })
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufNew"
|
||||
, "TextChanged"
|
||||
, "TextChangedI"
|
||||
, "TextChangedP"
|
||||
, "TextChangedT"
|
||||
}, {
|
||||
callback = function(args)
|
||||
vim.diagnostic.disable(args.buf)
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({"BufWrite"}, {
|
||||
callback = function(args)
|
||||
vim.diagnostic.enable(args.buf)
|
||||
end
|
||||
})
|
||||
'';
|
||||
extraConfig = ''
|
||||
set rnu nu
|
||||
|
|
Loading…
Reference in New Issue
Block a user