We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca5bcf7 commit 305ec77Copy full SHA for 305ec77
lua/kickstart/plugins/lint.lua
@@ -5,9 +5,9 @@ return {
5
event = { 'BufReadPre', 'BufNewFile' },
6
config = function()
7
local lint = require 'lint'
8
- lint.linters_by_ft = {
9
- markdown = { 'markdownlint' },
10
- }
+ lint.linters_by_ft = lint.linters_by_ft or {}
+ lint.linters_by_ft['markdown'] = { 'markdownlint' }
+ lint.linters_by_ft['python'] = { 'ruff' }
11
12
-- To allow other plugins to add linters to require('lint').linters_by_ft,
13
-- instead set linters_by_ft like this:
0 commit comments