diff --git a/init.lua b/init.lua index 69f3362..ea11b57 100644 --- a/init.lua +++ b/init.lua @@ -436,10 +436,20 @@ lint.linters.sqlfluff.args = { lint.linters.yamllint.args = { args = { "--format=parsable", "-d relaxed" }, } +-- actionlint -- +---- Set custom filetype to not lint everythin +--- https://github.com/mfussenegger/nvim-lint/issues/591#issuecomment-2142162704 +vim.filetype.add({ + pattern = { + ['.*/.github/workflows/.*%.yml'] = 'yaml.ghaction', + ['.*/.github/workflows/.*%.yaml'] = 'yaml.ghaction', + }, +}) local linters = { bash = { "shellcheck" }, dockerfile = { "hadolint" }, + ghaction = { "actionlint" }, go = { "golangcilint" }, python = { "flake8" }, -- rust = { "clippy" },