Skip to content

Commit 305ec77

Browse files
committed
lint.lua: Use ruff for python
1 parent ca5bcf7 commit 305ec77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/kickstart/plugins/lint.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ return {
55
event = { 'BufReadPre', 'BufNewFile' },
66
config = function()
77
local lint = require 'lint'
8-
lint.linters_by_ft = {
9-
markdown = { 'markdownlint' },
10-
}
8+
lint.linters_by_ft = lint.linters_by_ft or {}
9+
lint.linters_by_ft['markdown'] = { 'markdownlint' }
10+
lint.linters_by_ft['python'] = { 'ruff' }
1111

1212
-- To allow other plugins to add linters to require('lint').linters_by_ft,
1313
-- instead set linters_by_ft like this:

0 commit comments

Comments
 (0)