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 -------------
|
||||
-------------------------------------------
|
||||
|
||||
@@ -15,7 +15,7 @@ return {
|
||||
analysis = {
|
||||
useLibraryCodeForTypes = false,
|
||||
autoImportCompletions = false,
|
||||
diagnosticMode = "openFilesOnly",
|
||||
diagnosticMode = "off",
|
||||
typeCheckingMode = "off",
|
||||
autoSearchPath = false,
|
||||
logLevel = "Error",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
return {
|
||||
{ "Wansmer/treesj", enabled = false },
|
||||
-- { "kevinhwang91/nvim-ufo", enabled = true},
|
||||
|
||||
-- You can disable default plugins as follows:
|
||||
{ "max397574/better-escape.nvim", enabled = false },
|
||||
|
||||
Reference in New Issue
Block a user