0
0

ruff.lua 428 B

123456789101112131415161718
  1. --- @type vim.lsp.ClientConfig
  2. return {
  3. cmd = { 'ruff', 'server' },
  4. filetypes = { 'python' },
  5. root_markers = {
  6. 'pyproject.toml',
  7. 'setup.py',
  8. 'setup.cfg',
  9. 'requirements.txt',
  10. 'Pipfile',
  11. 'pyrightconfig.json',
  12. },
  13. single_file_support = true,
  14. settings = {},
  15. on_attach = function(client, _)
  16. client.server_capabilities.hoverProvider = false
  17. end
  18. }