configurating pyrefly

This commit is contained in:
huyjaky
2026-01-12 10:56:51 +07:00
parent 5b565cebe7
commit 86d0292e02
5 changed files with 12 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ vim.api.nvim_create_autocmd("FileType", {
vim.lsp.enable "pyrefly"
vim.lsp.config("pyrefly", {
-- example of how to run `uv` installed Pyrefly without adding to your path
cmd = { "pyrefly", "lsp", "--indexing-mode", "none" },
cmd = { "pyrefly", "lsp", "--indexing-mode", "none" , "--threads", "4"},
filetypes = { "python" },
root_markers = {
"pyrefly.toml",
@@ -51,6 +51,7 @@ vim.lsp.config("pyrefly", {
"setup.py",
"setup.cfg",
"requirements.txt",
"requirement.txt",
"Pipfile",
".git",
".venv",