nvim: after/plugin/nvim-lint: Enable linting for Dockerfile

This commit is contained in:
Sanchayan Maity 2022-01-12 13:16:29 +05:30
parent cb8dfaddfa
commit 4d978c02f6
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
autocmd! BufWritePost <buffer> lua require('lint').try_lint()

View File

@ -3,6 +3,7 @@ local nvim_lint = require 'lint'
vim.api.nvim_set_keymap('n', '<LocalLeader>l', ':lua require(\'lint\').try_lint()<CR>', { noremap = true, unique = true })
nvim_lint.linters_by_ft = {
dockerfile = { 'hadolint' },
haskell = { 'hlint' },
javascript = { 'eslint' },
lua = { 'luacheck' },