Skip to content

Commit

Permalink
neovim: add nvim-lint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pythops committed May 24, 2024
1 parent 2803aa8 commit e7ec347
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions roles/configure/files/config/nvim/lua/plugins/lint.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
return {
"mfussenegger/nvim-lint",
config = function()
require("lint").linters_by_ft = {
["yaml.github"] = { "actionlint" },
}

vim.api.nvim_create_autocmd("BufWritePost", {
pattern = "*",
callback = function()
require("lint").try_lint()
end,
})
end,
}

0 comments on commit e7ec347

Please sign in to comment.