From b82a6d2f044dec4efffc36b22f5eb59af51169d8 Mon Sep 17 00:00:00 2001 From: geloman Date: Wed, 11 Dec 2024 01:47:54 +0800 Subject: [PATCH] add new editor linters --- nvim/lua/plugins/linting.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nvim/lua/plugins/linting.lua b/nvim/lua/plugins/linting.lua index a852113..62418bd 100644 --- a/nvim/lua/plugins/linting.lua +++ b/nvim/lua/plugins/linting.lua @@ -2,10 +2,15 @@ return { 'mfussenegger/nvim-lint', config = function() require('lint').linters_by_ft = { + sh = { 'shellcheck' }, + yaml = { 'yamllint' }, + python = { 'pylint' }, + terraform = { 'tflint' }, javascript = { 'eslint' }, typescript = { 'eslint' }, javascriptreact = { 'eslint' }, typescriptreact = { 'eslint' }, + ['yaml.ansible'] = { 'ansible_lint' }, } end,