nvim: after/plugin/nvim-lint: Enable linting for Dockerfile
This commit is contained in:
parent
cb8dfaddfa
commit
4d978c02f6
2 changed files with 2 additions and 0 deletions
1
nvim/.config/nvim/after/ftplugin/dockerfile.vim
Normal file
1
nvim/.config/nvim/after/ftplugin/dockerfile.vim
Normal file
|
@ -0,0 +1 @@
|
|||
autocmd! BufWritePost <buffer> lua require('lint').try_lint()
|
|
@ -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' },
|
||||
|
|
Loading…
Reference in a new issue