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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
532 B
Lua
Raw Normal View History

local nvim_lint = require 'lint'
vim.keymap.set('n', '<Leader>l', ':lua require(\'lint\').try_lint()<CR>', { noremap = true, unique = true })
2021-11-27 12:00:18 +01:00
nvim_lint.linters_by_ft = {
c = { 'clangtidy' },
dockerfile = { 'hadolint' },
2022-04-25 05:12:33 +02:00
fish = { 'fish' },
go = { 'revive' },
2021-11-27 12:00:18 +01:00
haskell = { 'hlint' },
javascript = { 'eslint_d' },
2021-11-27 12:00:18 +01:00
lua = { 'luacheck' },
markdown = { 'vale' },
python = { 'ruff' },
2021-11-27 12:00:18 +01:00
sh = { 'shellcheck' },
typescript = { 'eslint_d' },
yaml = { 'yamllint' },
2021-11-27 12:00:18 +01:00
}