diff --git a/nvim/.config/nvim/after/ftplugin/json.lua b/nvim/.config/nvim/after/ftplugin/json.lua index 0993f3c..0b94301 100644 --- a/nvim/.config/nvim/after/ftplugin/json.lua +++ b/nvim/.config/nvim/after/ftplugin/json.lua @@ -1 +1,8 @@ vim.keymap.set('n', 'gq', ":%!jq '.'", { noremap=true, silent=true, buffer=0 }) + +vim.api.nvim_create_autocmd({ "BufWritePost" }, { + buffer = 0, + callback = function() + require("lint").try_lint() + end, +})