diff options
| author | Conner Nilsen <connernilsen@gmail.com> | 2025-05-21 03:35:20 -1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-21 06:35:20 -0700 |
| commit | 47f8938898ea6d8ba4409e7ca3310a797249efea (patch) | |
| tree | 1af9aefbf5c206df6cae67a0bb348a5c22d94521 /lsp/pyrefly.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-47f8938898ea6d8ba4409e7ca3310a797249efea.tar nvim-lspconfig-47f8938898ea6d8ba4409e7ca3310a797249efea.tar.gz nvim-lspconfig-47f8938898ea6d8ba4409e7ca3310a797249efea.tar.bz2 nvim-lspconfig-47f8938898ea6d8ba4409e7ca3310a797249efea.tar.lz nvim-lspconfig-47f8938898ea6d8ba4409e7ca3310a797249efea.tar.xz nvim-lspconfig-47f8938898ea6d8ba4409e7ca3310a797249efea.tar.zst nvim-lspconfig-47f8938898ea6d8ba4409e7ca3310a797249efea.zip | |
feat: pyrefly #3856
Diffstat (limited to 'lsp/pyrefly.lua')
| -rw-r--r-- | lsp/pyrefly.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lsp/pyrefly.lua b/lsp/pyrefly.lua new file mode 100644 index 00000000..e8ac037b --- /dev/null +++ b/lsp/pyrefly.lua @@ -0,0 +1,25 @@ +---@brief +--- +--- https://pyrefly.org/ +--- +---`pyrefly`, a faster Python type checker written in Rust. +-- +-- `pyrefly` is still in development, so please report any errors to +-- our issues page at https://github.com/facebook/pyrefly/issues. + +return { + cmd = { 'pyrefly', 'lsp' }, + filetypes = { 'python' }, + root_markers = { + 'pyrefly.toml', + 'pyproject.toml', + 'setup.py', + 'setup.cfg', + 'requirements.txt', + 'Pipfile', + '.git', + }, + on_exit = function(code, _, _) + vim.notify('Closing Pyrefly LSP exited with code: ' .. code, vim.log.levels.INFO) + end, +} |
