diff --git a/home/rachel.nix b/home/rachel.nix index 9ff68a1..1dd8720 100644 --- a/home/rachel.nix +++ b/home/rachel.nix @@ -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