diff --git a/README.md b/README.md index 225cd351be..5ce0176d09 100644 --- a/README.md +++ b/README.md @@ -1541,30 +1541,10 @@ tools: ```lua local null_ls = require("null-ls") -local methods = require("null-ls.methods") -local helpers = require("null-ls.helpers") - -local function ruff_fix() - return helpers.make_builtin({ - name = "ruff", - meta = { - url = "https://github.com/charliermarsh/ruff/", - description = "An extremely fast Python linter, written in Rust.", - }, - method = methods.internal.FORMATTING, - filetypes = { "python" }, - generator_opts = { - command = "ruff", - args = { "--fix", "-e", "-n", "--stdin-filename", "$FILENAME", "-" }, - to_stdin = true - }, - factory = helpers.formatter_factory - }) -end null_ls.setup({ sources = { - ruff_fix(), + null_ls.builtins.formatting.ruff, null_ls.builtins.diagnostics.ruff, } })