pyrefly.lua 848 B

1234567891011121314151617181920212223242526272829303132333435
  1. --- @type vim.lsp.ClientConfig
  2. return {
  3. cmd = {
  4. 'pyrefly',
  5. 'lsp',
  6. },
  7. filetypes = {
  8. 'python',
  9. },
  10. root_markers = {
  11. '.git',
  12. 'pyproject.toml',
  13. 'pyrefly.toml',
  14. 'requirements.txt',
  15. ".venv",
  16. },
  17. single_file_support = true,
  18. settings = {
  19. python = {
  20. pyrefly = {
  21. displayTypeErrors = 'force-on',
  22. disableLanguageServices = false,
  23. analysis = {
  24. inlayHints = {
  25. callArgumentNames = true,
  26. functionReturnTypes = true,
  27. pytestParameters = true,
  28. variableTypes = true,
  29. },
  30. showHoverGoToLinks = true,
  31. },
  32. },
  33. }
  34. },
  35. }