diff options
| author | seth <[email protected]> | 2024-07-14 12:59:02 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-07-14 13:47:39 -0400 |
| commit | 00d5ec09d45d09451b21ab58054e40f593577b15 (patch) | |
| tree | adea3dbc1e1d2e0ccd913128a03f2f3b3dbdb409 /plugin/lint.lua | |
| parent | 8c76161eb8cf752c00a65cccccd381fb3bc5955d (diff) | |
efmls -> nvim-lint
also only use native lsps for formatting
Diffstat (limited to 'plugin/lint.lua')
| -rw-r--r-- | plugin/lint.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugin/lint.lua b/plugin/lint.lua new file mode 100644 index 0000000..2a7f3a9 --- /dev/null +++ b/plugin/lint.lua @@ -0,0 +1,15 @@ +require("lint").linters_by_ft = { + githubaction = { "actionlint" }, + lua = { "selene" }, + nix = { "statix" }, +} + +vim.api.nvim_create_autocmd({ "BufWritePost" }, { + callback = function() + -- Run linters declared in linters_by_ft + require("lint").try_lint() + + -- Run these linters regardless of filetype + require("lint").try_lint("alex") + end, +}) |
