| 1234567891011121314151617181920212223242526272829303132333435 |
- --- @type vim.lsp.ClientConfig
- return {
- cmd = {
- 'pyrefly',
- 'lsp',
- },
- filetypes = {
- 'python',
- },
- root_markers = {
- '.git',
- 'pyproject.toml',
- 'pyrefly.toml',
- 'requirements.txt',
- ".venv",
- },
- single_file_support = true,
- settings = {
- python = {
- pyrefly = {
- displayTypeErrors = 'force-on',
- disableLanguageServices = false,
- analysis = {
- inlayHints = {
- callArgumentNames = true,
- functionReturnTypes = true,
- pytestParameters = true,
- variableTypes = true,
- },
- showHoverGoToLinks = true,
- },
- },
- }
- },
- }
|