configurating pyrefly
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -19,6 +19,8 @@ return function()
|
||||
mappings.n["<C-Up>"] = false
|
||||
mappings.n["<C-Down>"] = false
|
||||
|
||||
mappings.n["<z-b>"] = false
|
||||
|
||||
-------------------------------------------
|
||||
----------- Utility functions -------------
|
||||
-------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user