16 lines
455 B
Lua
16 lines
455 B
Lua
|
return {
|
||
|
"mfussenegger/nvim-lint",
|
||
|
config = function ()
|
||
|
require("lint").linters_by_ft = {
|
||
|
python = {"dmypy"},
|
||
|
}
|
||
|
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||
|
callback = function()
|
||
|
-- try_lint without arguments runs the linters defined in `linters_by_ft`
|
||
|
-- for the current filetype
|
||
|
require("lint").try_lint()
|
||
|
end,
|
||
|
})
|
||
|
end
|
||
|
}
|