dotfiles/nvim/.config/nvim/after/plugin/nvim-lint.lua
Sanchayan Maity 3ea83c67ba nvim: after/plugin/nvim-lint: Drop languagetool & vale
Both seem to give errors at the moment. While at it, drop the unused
flake8 args setting.
2022-09-28 17:13:37 +05:30

16 lines
455 B
Lua

local nvim_lint = require 'lint'
vim.keymap.set('n', '<LocalLeader>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', 'mypy' },
sh = { 'shellcheck' },
typescript = { 'eslint' },
yaml = { 'yamllint' },
}