0
0

ruff.lua 572 B

123456789101112131415161718192021
  1. --- @type vim.lsp.ClientConfig
  2. return {
  3. cmd = { "ruff", "server" },
  4. filetypes = { "python" },
  5. root_markers = { ".git", "pyproject.toml", "ruff.toml", ".ruff.toml", ".venv", },
  6. init_options = {
  7. settings = {
  8. lint = {
  9. enable = true,
  10. ignore = { "F841", "F821", "F822", "F823" },
  11. },
  12. codeAction = {
  13. fixViolation = { enable = true },
  14. },
  15. fixAll = true,
  16. organizeImports = true,
  17. showSyntaxErrors = false,
  18. },
  19. },
  20. }