summaryrefslogtreecommitdiffstats
path: root/lua/plugins/general.lua
blob: d269c131de7f9b42924e0c44ad31aa72390023d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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,
	},
	{
		'NeogitOrg/neogit',
		keys = {
			{ '<leader>a', function() require('neogit').open() end, desc = 'git' },
		},
		dependencies = {
			'nvim-lua/plenary.nvim',
		},
		config = true
	},
}