| 123456789101112131415161718192021 |
- --- @type vim.lsp.ClientConfig
- return {
- cmd = { "ruff", "server" },
- filetypes = { "python" },
- root_markers = { ".git", "pyproject.toml", "ruff.toml", ".ruff.toml", ".venv", },
- init_options = {
- settings = {
- lint = {
- enable = true,
- ignore = { "F841", "F821", "F822", "F823" },
- },
- codeAction = {
- fixViolation = { enable = true },
- },
- fixAll = true,
- organizeImports = true,
- showSyntaxErrors = false,
- },
- },
- }
|