You've already forked dotfiles
setup to use floating messages instead of the cmdline output, cleanup of plugin loading.
18 lines
489 B
Lua
18 lines
489 B
Lua
vim.pack.add({
|
|
'https://github.com/mfussenegger/nvim-lint'
|
|
})
|
|
|
|
require('lint').linters_by_ft = {
|
|
yaml = { 'cfn_lint' }
|
|
}
|
|
|
|
-- Run linting automatically after writing and reading a buffer
|
|
-- (A bit too often as it is with manual runs available via keymapping)
|
|
-- vim.api.nvim_create_autocmd({ 'BufWritePost', 'BufReadPost' }, {
|
|
-- callback = function()
|
|
-- require('lint').try_lint()
|
|
-- end,
|
|
-- })
|
|
|
|
vim.keymap.set('n', ';l', function() require('lint').try_lint() end)
|