From 02a1c77cad04e16005b8ab2ce18617b0ffa278b7 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Fri, 24 Mar 2023 10:30:18 +0100 Subject: diagnostics and linting --- lua/plugins/general.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lua/plugins/general.lua') diff --git a/lua/plugins/general.lua b/lua/plugins/general.lua index f86270d..ddcacea 100644 --- a/lua/plugins/general.lua +++ b/lua/plugins/general.lua @@ -1,4 +1,20 @@ return { + { + 'mfussenegger/nvim-lint', + event = { + 'BufWritePre' + }, + config = function() + require('lint').linters_by_ft = { + tex = { 'lacheck', } + } + vim.api.nvim_create_autocmd({ "BufWritePost" }, { + callback = function() + require("lint").try_lint() + end, + }) + end, + }, { 'tpope/vim-fugitive', event = { -- cgit v1.2.3