You've already forked dotfiles
feat: Adding the TSI (Tree-Sitter Install) command, changing the ui2
setup to use floating messages instead of the cmdline output, cleanup of plugin loading.
This commit is contained in:
@@ -1,22 +1,17 @@
|
||||
return {
|
||||
'mfussenegger/nvim-lint',
|
||||
config = function()
|
||||
require('lint').linters_by_ft = {
|
||||
yaml = { 'cfn_lint' }
|
||||
}
|
||||
vim.pack.add({
|
||||
'https://github.com/mfussenegger/nvim-lint'
|
||||
})
|
||||
|
||||
-- vim.api.nvim_create_autocmd({ 'BufWritePost', 'BufReadPost' }, {
|
||||
-- callback = function()
|
||||
-- require('lint').try_lint()
|
||||
-- end,
|
||||
-- })
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
';l',
|
||||
function()
|
||||
require('lint').try_lint()
|
||||
end
|
||||
},
|
||||
},
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user