16 lines
442 B
Lua
16 lines
442 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' },
|
|
lua = { 'luacheck' },
|
|
python = { 'pylint' },
|
|
sh = { 'shellcheck' },
|
|
typescript = { 'eslint' },
|
|
yaml = { 'yamllint' },
|
|
}
|