diff options
Diffstat (limited to 'lua/plugins/general.lua')
| -rw-r--r-- | lua/plugins/general.lua | 16 |
1 files changed, 16 insertions, 0 deletions
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,5 +1,21 @@ 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 = { 'BufReadPost', |
