local nvim_lint = require 'lint'

vim.keymap.set('n', '<Leader>l', ':lua require(\'lint\').try_lint()<CR>', { noremap = true, unique = true })

nvim_lint.linters_by_ft = {
  c          = { 'clangtidy' },
  dockerfile = { 'hadolint' },
  fish       = { 'fish' },
  go         = { 'revive' },
  haskell    = { 'hlint' },
  javascript = { 'eslint_d' },
  lua        = { 'luacheck' },
  markdown   = { 'vale' },
  python     = { 'ruff' },
  sh         = { 'shellcheck' },
  typescript = { 'eslint_d' },
  yaml       = { 'yamllint' },
}
