dotfiles/nvim/.config/nvim/after/plugin/nvim-lint.lua

16 lines
446 B
Lua

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 = {
dockerfile = { 'hadolint' },
fish = { 'fish' },
haskell = { 'hlint' },
javascript = { 'eslint_d' },
lua = { 'luacheck' },
python = { 'pylint' },
sh = { 'shellcheck' },
typescript = { 'eslint_d' },
yaml = { 'yamllint' },
}