nvim-lint.lua 313 B

123456789101112131415
  1. require("lint").linters_by_ft = {
  2. -- javascript = { "eslint_d" },
  3. -- typescript = { "eslint_d" },
  4. -- typescriptreact = { "eslint_d" },
  5. -- javascriptreact = { "eslint_d" },
  6. python = { "mypy" },
  7. }
  8. vim.api.nvim_create_autocmd({ "BufWritePost" }, {
  9. callback = function()
  10. require("lint").try_lint()
  11. end,
  12. })